ZhouYuCheng
commited on
Commit
β’
5639334
1
Parent(s):
93789ad
Update README.md
Browse files
README.md
CHANGED
@@ -23,7 +23,8 @@ language:
|
|
23 |
>>> result = classifier("ε¦ζη
ζ
θΎιοΌε―ιε½ε£ζη²η‘εηγη―ι
―ηΊ’ιη΄ ηγε²εηΎθΎηηθ―η©θΏθ‘ζζζιηγ")
|
24 |
|
25 |
>>> for item in result:
|
26 |
-
>>>
|
|
|
27 |
|
28 |
{'entity': 1, 'score': 0.99999595, 'index': 13, 'word': 'η²', 'start': 12, 'end': 13}
|
29 |
{'entity': 2, 'score': 0.9999957, 'index': 14, 'word': 'η‘', 'start': 13, 'end': 14}
|
|
|
23 |
>>> result = classifier("ε¦ζη
ζ
θΎιοΌε―ιε½ε£ζη²η‘εηγη―ι
―ηΊ’ιη΄ ηγε²εηΎθΎηηθ―η©θΏθ‘ζζζιηγ")
|
24 |
|
25 |
>>> for item in result:
|
26 |
+
>>> if item['entity'] == 1 or item['entity'] == 2:
|
27 |
+
>>> print(item)
|
28 |
|
29 |
{'entity': 1, 'score': 0.99999595, 'index': 13, 'word': 'η²', 'start': 12, 'end': 13}
|
30 |
{'entity': 2, 'score': 0.9999957, 'index': 14, 'word': 'η‘', 'start': 13, 'end': 14}
|