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