update readme
Browse files
README.md
CHANGED
@@ -28,32 +28,6 @@ The model is intended for term extraction tasks. It can be applied in domains li
|
|
28 |
- Named Entity Recognition (NER)
|
29 |
- Information Extraction
|
30 |
|
31 |
-
## How to use
|
32 |
-
|
33 |
-
Here's a quick example of how to use the model with the Hugging Face `transformers` library:
|
34 |
-
|
35 |
-
```python
|
36 |
-
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
|
37 |
-
|
38 |
-
# Load the tokenizer and model
|
39 |
-
tokenizer = AutoTokenizer.from_pretrained("tthhanh/xlm-ate-nobi-en")
|
40 |
-
model = AutoModelForTokenClassification.from_pretrained("tthhanh/xlm-ate-nobi-en")
|
41 |
-
|
42 |
-
# Create a pipeline for token classification
|
43 |
-
nlp = pipeline("token-classification", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
|
44 |
-
|
45 |
-
# Example text
|
46 |
-
text = "Treatment of anemia in patients with heart disease : a clinical practice guideline from the American College of Physicians ."
|
47 |
-
|
48 |
-
# Get predictions
|
49 |
-
predictions = nlp(text)
|
50 |
-
|
51 |
-
# Print predictions
|
52 |
-
for prediction in predictions:
|
53 |
-
print(prediction)
|
54 |
-
|
55 |
-
```
|
56 |
-
|
57 |
## Training and evaluation data
|
58 |
|
59 |
We fine-tuned the English version of the ACTER dataset where Named Entities are excluded in the gold standard. We trained on the Corruption and Wind Energy domain, validated on the Equitation domain, and tested on the Heart Failure domain.
|
|
|
28 |
- Named Entity Recognition (NER)
|
29 |
- Information Extraction
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
## Training and evaluation data
|
32 |
|
33 |
We fine-tuned the English version of the ACTER dataset where Named Entities are excluded in the gold standard. We trained on the Corruption and Wind Energy domain, validated on the Equitation domain, and tested on the Heart Failure domain.
|