Update README.md
Browse files
README.md
CHANGED
@@ -58,7 +58,19 @@ sentiment_analysis = pipeline(
|
|
58 |
```
|
59 |
Our model is also available on AWS! for more information visit [AWS' git](https://github.com/aws-samples/aws-lambda-docker-serverless-inference/tree/main/hebert-sentiment-analysis-inference-docker-lambda)
|
60 |
|
|
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
|
64 |
## Stay tuned!
|
|
|
58 |
```
|
59 |
Our model is also available on AWS! for more information visit [AWS' git](https://github.com/aws-samples/aws-lambda-docker-serverless-inference/tree/main/hebert-sentiment-analysis-inference-docker-lambda)
|
60 |
|
61 |
+
### For NER model:
|
62 |
|
63 |
+
```
|
64 |
+
from transformers import pipeline
|
65 |
+
|
66 |
+
# how to use?
|
67 |
+
NER = pipeline(
|
68 |
+
"token-classification",
|
69 |
+
model="avichr/heBERT_NER",
|
70 |
+
tokenizer="avichr/heBERT_NER",
|
71 |
+
)
|
72 |
+
NER('讚讜讬讚 诇讜诪讚 讘讗讜谞讬讘专住讬讟讛 讛注讘专讬转 砖讘讬专讜砖诇讬诐')
|
73 |
+
```
|
74 |
|
75 |
|
76 |
## Stay tuned!
|