Update README.md
Browse files
README.md
CHANGED
|
@@ -40,6 +40,8 @@ It achieves the following results on the evaluation set:
|
|
| 40 |
### 使用方法(pipline的方法)
|
| 41 |
|
| 42 |
```python
|
|
|
|
|
|
|
| 43 |
ner_pipe = pipeline("token-classification", model='roberthsu2003/models_for_ner',aggregation_strategy="simple")
|
| 44 |
inputs = "徐國堂在台北上班"
|
| 45 |
res = ner_pipe(inputs)
|
|
|
|
| 40 |
### 使用方法(pipline的方法)
|
| 41 |
|
| 42 |
```python
|
| 43 |
+
from transformers import pipeline
|
| 44 |
+
|
| 45 |
ner_pipe = pipeline("token-classification", model='roberthsu2003/models_for_ner',aggregation_strategy="simple")
|
| 46 |
inputs = "徐國堂在台北上班"
|
| 47 |
res = ner_pipe(inputs)
|