Commit ·
659be2d
1
Parent(s): c8c94b6
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NER of medications
|
| 2 |
+
|
| 3 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 4 |
+
|
| 5 |
+
This model aims to demonstrate text classification task through sentiment analysis
|
| 6 |
+
|
| 7 |
+
### Model Description
|
| 8 |
+
|
| 9 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 10 |
+
|
| 11 |
+
- **Developed by:** [Nilton Seixas]
|
| 12 |
+
- **Language(s) (NLP):** [English]
|
| 13 |
+
- **License:** [More Information Needed]
|
| 14 |
+
- **Finetuned from model [optional]:** [distilbert-base-cased]
|
| 15 |
+
|
| 16 |
+
### Model Sources [optional]
|
| 17 |
+
|
| 18 |
+
<!-- Provide the basic links for the model. -->
|
| 19 |
+
|
| 20 |
+
- **Repository:** [niltonseixas/sentiment_analysis]
|
| 21 |
+
- **Paper [optional]:** [More Information Needed]
|
| 22 |
+
- **Demo [optional]:** [More Information Needed]
|
| 23 |
+
|
| 24 |
+
## Uses
|
| 25 |
+
|
| 26 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 27 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 28 |
+
|
| 29 |
+
from transformers import pipeline
|
| 30 |
+
|
| 31 |
+
tokenizer = AutoTokenizer.from_pretrained("niltonseixas/sentiment_analysis_tokenizer")
|
| 32 |
+
|
| 33 |
+
model = pipeline("text-classification", model="niltonseixas/sentiment_analysis", tokenizer=tokenizer)
|
| 34 |
+
|
| 35 |
+
model("I'm in love with NLP")
|