crodri commited on
Commit
2dca8df
1 Parent(s): b45fe3f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md CHANGED
@@ -63,6 +63,18 @@ It has been trained with a dataset that contains 9 main types and 52 subtypes on
63
  ## How to use
64
 
65
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  ## Limitations and bias
67
  At the time of submission, no measures have been taken to estimate the bias embedded in the model. However, we are well aware that our models may be biased since the corpora have been collected using crawling techniques on multiple web sources. We intend to conduct research in these areas in the future, and if completed, this model card will be updated.
68
 
 
63
  ## How to use
64
 
65
 
66
+ from transformers import pipeline
67
+
68
+ ```
69
+ pipe = pipeline("ner", model="projecte-aina/multiner_ceil")
70
+ example = "George Smith Patton fué un general del Ejército de los Estados Unidos en Europa durante la Segunda Guerra Mundial. "
71
+
72
+ ner_entity_results = pipe(example, aggregation_strategy="simple")
73
+ print(ner_entity_results)
74
+
75
+
76
+ ```
77
+
78
  ## Limitations and bias
79
  At the time of submission, no measures have been taken to estimate the bias embedded in the model. However, we are well aware that our models may be biased since the corpora have been collected using crawling techniques on multiple web sources. We intend to conduct research in these areas in the future, and if completed, this model card will be updated.
80