simonada commited on
Commit
3e64ba8
·
verified ·
1 Parent(s): 3693908

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -3
README.md CHANGED
@@ -1,3 +1,32 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ datasets:
4
+ - bigbio/neurotrial_ner
5
+ base_model:
6
+ - michiyasunaga/BioLinkBERT-base
7
+ pipeline_tag: token-classification
8
+ ---
9
+
10
+ ## Intended uses & limitations
11
+
12
+ #### How to use
13
+
14
+ You can use this model with Transformers *pipeline* for NER.
15
+
16
+ ```python
17
+ from transformers import AutoTokenizer, AutoModelForTokenClassification
18
+ from transformers import pipeline
19
+
20
+ tokenizer = AutoTokenizer.from_pretrained("simonada/NeuroTrialNER_BioLinkBERT")
21
+ model = AutoModelForTokenClassification.from_pretrained("simonada/NeuroTrialNER_BioLinkBERT")
22
+
23
+ nlp = pipeline("ner", model=model, tokenizer=tokenizer)
24
+ example = "This trial examines atypical antipsychotic aripiprazole as an augmenting agent to antidepressant therapy in treatment-resistant depressed patients."
25
+
26
+ ner_results = nlp(example)
27
+ print(ner_results)
28
+ ```
29
+
30
+ #### Limitations and bias
31
+
32
+ This model is limited by its training dataset of entity-annotated clinical trial registry records from a specific span of time and focused on the field of neuroscience. This may not generalize well for all use cases in different domains. Furthermore, the model occassionally tags subword tokens as entities and post-processing of results may be necessary to handle those cases.