HarryCovert
commited on
Commit
•
fbb5b18
1
Parent(s):
8fed037
Update README.md
Browse files
README.md
CHANGED
@@ -18,8 +18,16 @@ widget:
|
|
18 |
---
|
19 |
### How to use
|
20 |
|
21 |
-
You can use this model directly with a pipeline for token classification.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
|
|
23 |
|
24 |
### Our Paper (TBA)
|
25 |
|
|
|
18 |
---
|
19 |
### How to use
|
20 |
|
21 |
+
You can use this model directly with a pipeline for token classification.
|
22 |
+
Given a mathematical definition from the text of an academic article, the model shall identify the term(s) defined with it.
|
23 |
+
```python
|
24 |
+
from transformers import pipeline
|
25 |
+
# Here, we use the prediction of the first word piece of every word.
|
26 |
+
pipe = pipeline(model="InriaValda/roberta-base_definiendum",
|
27 |
+
aggregation_strategy="first")
|
28 |
+
pipe("A Young graph Y such that Y≃ Y(10, 9) is called a 1089 graph.")
|
29 |
|
30 |
+
```
|
31 |
|
32 |
### Our Paper (TBA)
|
33 |
|