一个微型的用于提取 Part-Of-Speech (POS) 的 Python 包
pip install -r requirements.txtOnly test by using Python3
#!/usr/bin/env python
from MicroTagger.hmm import HMMTagger
hmm_tagger = HMMTagger.load()
result = hmm_tagger.predict("知识 就是 力量 。")
print(result)输出:
知识/m 就是/d 力量/n 。/wj
| ID | Model Name | Accuracy |
|---|---|---|
| 1 | Most Frequent Class Baseline | 0.83703 |
| 2 | HMM | 0.92339 |