Update README.md
Browse files
README.md
CHANGED
@@ -134,57 +134,6 @@ model.run([text], labels, threshold=0.3, num_gen_sequences=1)
|
|
134 |
|
135 |
---
|
136 |
|
137 |
-
### Example Output
|
138 |
-
|
139 |
-
```json
|
140 |
-
[
|
141 |
-
[
|
142 |
-
{
|
143 |
-
"start": 21,
|
144 |
-
"end": 26,
|
145 |
-
"text": "Apple",
|
146 |
-
"label": "other",
|
147 |
-
"score": 0.6795641779899597,
|
148 |
-
"generated labels": ["Organization"]
|
149 |
-
},
|
150 |
-
{
|
151 |
-
"start": 47,
|
152 |
-
"end": 60,
|
153 |
-
"text": "April 1, 1976",
|
154 |
-
"label": "other",
|
155 |
-
"score": 0.44296327233314514,
|
156 |
-
"generated labels": ["Date"]
|
157 |
-
},
|
158 |
-
{
|
159 |
-
"start": 65,
|
160 |
-
"end": 78,
|
161 |
-
"text": "Steve Wozniak",
|
162 |
-
"label": "person",
|
163 |
-
"score": 0.9934439659118652,
|
164 |
-
"generated labels": ["Person"]
|
165 |
-
},
|
166 |
-
{
|
167 |
-
"start": 80,
|
168 |
-
"end": 90,
|
169 |
-
"text": "Steve Jobs",
|
170 |
-
"label": "person",
|
171 |
-
"score": 0.9725918769836426,
|
172 |
-
"generated labels": ["Person"]
|
173 |
-
},
|
174 |
-
{
|
175 |
-
"start": 107,
|
176 |
-
"end": 119,
|
177 |
-
"text": "Ronald Wayne",
|
178 |
-
"label": "person",
|
179 |
-
"score": 0.9964536428451538,
|
180 |
-
"generated labels": ["Person"]
|
181 |
-
}
|
182 |
-
]
|
183 |
-
]
|
184 |
-
```
|
185 |
-
|
186 |
-
---
|
187 |
-
|
188 |
### Restricting the Decoder
|
189 |
|
190 |
You can limit the decoder to generate labels only from a predefined set:
|
|
|
134 |
|
135 |
---
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
### Restricting the Decoder
|
138 |
|
139 |
You can limit the decoder to generate labels only from a predefined set:
|