ggreener1 commited on
Commit
794eca4
·
verified ·
1 Parent(s): 67a2869

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -8
README.md CHANGED
@@ -50,19 +50,14 @@ The model was benchmarks across two private, manually annotated test sets:
50
  ## Getting Started
51
 
52
  ```python
53
- from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
54
 
55
- tokenizer = AutoTokenizer.from_pretrained("traceo/DrugRecon-1.0")
56
-
57
- model = AutoModelForTokenClassification.from_pretrained("traceo/DrugRecon-1.0")
58
-
59
- classifier = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
60
 
61
  results = classifier("Be careful, it was advertised as ketamine but tested positive for 2-FDCK and deschloroketamine.")
62
 
63
  print(results)
64
- ```
65
- ```python
66
  [{'entity_group': 'DRUG',
67
  'score': np.float32(0.99362385),
68
  'word': ' ketamine',
 
50
  ## Getting Started
51
 
52
  ```python
53
+ from transformers import pipeline
54
 
55
+ classifier = pipeline("ner", model="traceo/DrugRecon-1.0", aggregation_strategy="simple")
 
 
 
 
56
 
57
  results = classifier("Be careful, it was advertised as ketamine but tested positive for 2-FDCK and deschloroketamine.")
58
 
59
  print(results)
60
+
 
61
  [{'entity_group': 'DRUG',
62
  'score': np.float32(0.99362385),
63
  'word': ' ketamine',