Views
No views yet
xlm-roberta-large on the Romanian portion of the MultiClinNER shared task. The model was developed by Team Enigma at the Faculty of Mathematics and Informatics, Sofia University.xlm-roberta-large and fine-tuned for token classification to identify SYMPTOM clinical entities.the train split only.bf16=True, tf32=TrueNote: The snippet below provides a quick out-of-the-box pipeline demonstration for raw text inference using standard Hugging Face subtoken aggregation. For official evaluation and submission, please utilize the dedicated word-alignment and offset restoration script from the repository.
1from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
2
3repo_id = "MonikaPeteva/multiclinner-enigma-ro-symptom-xlm-roberta-large"
4
5tokenizer = AutoTokenizer.from_pretrained(repo_id)
6model = AutoModelForTokenClassification.from_pretrained(repo_id)
7
8ner = pipeline(
9 "token-classification",
10 model=model,
11 tokenizer=tokenizer,
12 aggregation_strategy="simple"
13)
14
15text = "Patient was diagnosed with pneumonia."
16predictions = ner(text)
17
18print(predictions)