Update README.md
Browse files
README.md
CHANGED
@@ -19,7 +19,7 @@ This model will also be available in [CAMeL Tools](https://github.com/CAMeL-Lab/
|
|
19 |
To use the model with a transformers pipeline:
|
20 |
```python
|
21 |
>>> from transformers import pipeline
|
22 |
-
>>> pos = pipeline('
|
23 |
>>> text = 'عامل ايه ؟'
|
24 |
>>> pos(text)
|
25 |
[{'entity': 'adj', 'score': 0.9972628, 'index': 1, 'word': 'عامل', 'start': 0, 'end': 4}, {'entity': 'pron_interrog', 'score': 0.9525163, 'index': 2, 'word': 'ايه', 'start': 5, 'end': 8}, {'entity': 'punc', 'score': 0.99869114, 'index': 3, 'word': '؟', 'start': 9, 'end': 10}]
|
|
|
19 |
To use the model with a transformers pipeline:
|
20 |
```python
|
21 |
>>> from transformers import pipeline
|
22 |
+
>>> pos = pipeline('token-classification', model='CAMeL-Lab/bert-base-arabic-camelbert-mix-pos-egy')
|
23 |
>>> text = 'عامل ايه ؟'
|
24 |
>>> pos(text)
|
25 |
[{'entity': 'adj', 'score': 0.9972628, 'index': 1, 'word': 'عامل', 'start': 0, 'end': 4}, {'entity': 'pron_interrog', 'score': 0.9525163, 'index': 2, 'word': 'ايه', 'start': 5, 'end': 8}, {'entity': 'punc', 'score': 0.99869114, 'index': 3, 'word': '؟', 'start': 9, 'end': 10}]
|