remove the "s" from "model = models"
#1
by
MedAdh42
- opened
README.md
CHANGED
|
@@ -60,7 +60,7 @@ model = AutoModelForTokenClassification.from_pretrained("botryan96/GeoBERT_NER")
|
|
| 60 |
|
| 61 |
#Define the pipeline
|
| 62 |
from transformers import pipeline
|
| 63 |
-
ner_machine = pipeline('ner',model =
|
| 64 |
|
| 65 |
#Define the sentence
|
| 66 |
sentence = 'In North America, the water storage in the seepage face model is higher than the base case because positive pore pressure is requisite for drainage through a seepage face boundary condition. The result from the resistivity data supports the notion, especially in the northern part of the Sandstone Sediment formation. The active formation of America has a big potential for Oil and Gas based on the seismic section, has been activated since the Paleozoic'
|
|
|
|
| 60 |
|
| 61 |
#Define the pipeline
|
| 62 |
from transformers import pipeline
|
| 63 |
+
ner_machine = pipeline('ner',model = model,tokenizer=tokenizer, aggregation_strategy="simple")
|
| 64 |
|
| 65 |
#Define the sentence
|
| 66 |
sentence = 'In North America, the water storage in the seepage face model is higher than the base case because positive pore pressure is requisite for drainage through a seepage face boundary condition. The result from the resistivity data supports the notion, especially in the northern part of the Sandstone Sediment formation. The active formation of America has a big potential for Oil and Gas based on the seismic section, has been activated since the Paleozoic'
|