ZhouYuCheng commited on
Commit
5639334
β€’
1 Parent(s): 93789ad

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -1
README.md CHANGED
@@ -23,7 +23,8 @@ language:
23
  >>> result = classifier("ε¦‚ζžœη—…ζƒ…θΎƒι‡οΌŒε―ι€‚ε½“ε£ζœη”²η‘ε”‘η‰‡γ€ηŽ―ι…―ηΊ’ιœ‰η΄ η‰‡γ€ε²ε“šηΎŽθΎ›η‰‡η­‰θ―η‰©θΏ›θ‘ŒζŠ—ζ„ŸζŸ“ι•‡η—›γ€‚")
24
 
25
  >>> for item in result:
26
- >>> print(item)
 
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}