Commit
·
1cb0bef
1
Parent(s):
9077f9e
Update README.md
Browse files
README.md
CHANGED
@@ -51,14 +51,14 @@ generation_kwargs = {
|
|
51 |
"max_length": 128
|
52 |
}
|
53 |
|
54 |
-
pred_spans = model.predict(
|
55 |
text=text,
|
56 |
generation_kwargs=generation_kwargs,
|
57 |
instruction=instruction,
|
58 |
options=options
|
59 |
)
|
60 |
|
61 |
-
>>> [(99, 104, 'LOC')]
|
62 |
```
|
63 |
|
64 |
## Prediction Sample
|
|
|
51 |
"max_length": 128
|
52 |
}
|
53 |
|
54 |
+
pred_text, pred_spans = model.predict(
|
55 |
text=text,
|
56 |
generation_kwargs=generation_kwargs,
|
57 |
instruction=instruction,
|
58 |
options=options
|
59 |
)
|
60 |
|
61 |
+
>>> ('Spain is a Loc', [(99, 104, 'LOC')])
|
62 |
```
|
63 |
|
64 |
## Prediction Sample
|