├── .gitignore ├── LICENSE ├── README.md ├── demo └── demo_segment.py ├── setup.py ├── test ├── __init__.py ├── data │ ├── test.ngram.txt │ └── test.txt ├── test_bigramtable.py ├── test_dict.py ├── test_enum.py ├── test_hmm.py ├── test_organization_recognition.py ├── test_person_recognition.py ├── test_place_recognition.py ├── test_role_tag.py ├── test_segment.py ├── test_traditionalChineseDict.py ├── test_trie.py ├── test_viterbi_segment.py └── test_wordnet.py └── yaya ├── __init__.py ├── collection ├── __init__.py ├── bigram.py ├── dict.py ├── hmm.py └── trie.py ├── common ├── __init__.py ├── enum.py ├── nature.py ├── nr.py ├── ns.py └── nt.py ├── config.py ├── const.py ├── dictionary ├── __init__.py ├── chinese_traditional_dict.py ├── org_dict.py ├── person_dict.py └── place_dict.py ├── recognition ├── __init__.py ├── organization_recognition.py ├── person_recognition.py ├── place_recognition.py └── recognition.py ├── seg ├── __init__.py ├── segment.py ├── viterbi.py └── wordnet.py └── utility ├── __init__.py ├── bytearray.py ├── chartype.py ├── persistence.py └── singleton.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/README.md -------------------------------------------------------------------------------- /demo/demo_segment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/demo/demo_segment.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/setup.py -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/data/test.ngram.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/data/test.ngram.txt -------------------------------------------------------------------------------- /test/data/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/data/test.txt -------------------------------------------------------------------------------- /test/test_bigramtable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_bigramtable.py -------------------------------------------------------------------------------- /test/test_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_dict.py -------------------------------------------------------------------------------- /test/test_enum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_enum.py -------------------------------------------------------------------------------- /test/test_hmm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_hmm.py -------------------------------------------------------------------------------- /test/test_organization_recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_organization_recognition.py -------------------------------------------------------------------------------- /test/test_person_recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_person_recognition.py -------------------------------------------------------------------------------- /test/test_place_recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_place_recognition.py -------------------------------------------------------------------------------- /test/test_role_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_role_tag.py -------------------------------------------------------------------------------- /test/test_segment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_segment.py -------------------------------------------------------------------------------- /test/test_traditionalChineseDict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_traditionalChineseDict.py -------------------------------------------------------------------------------- /test/test_trie.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tony' 2 | -------------------------------------------------------------------------------- /test/test_viterbi_segment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_viterbi_segment.py -------------------------------------------------------------------------------- /test/test_wordnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/test/test_wordnet.py -------------------------------------------------------------------------------- /yaya/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/__init__.py -------------------------------------------------------------------------------- /yaya/collection/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tony' 2 | -------------------------------------------------------------------------------- /yaya/collection/bigram.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/collection/bigram.py -------------------------------------------------------------------------------- /yaya/collection/dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/collection/dict.py -------------------------------------------------------------------------------- /yaya/collection/hmm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/collection/hmm.py -------------------------------------------------------------------------------- /yaya/collection/trie.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/collection/trie.py -------------------------------------------------------------------------------- /yaya/common/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tony' 2 | -------------------------------------------------------------------------------- /yaya/common/enum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/common/enum.py -------------------------------------------------------------------------------- /yaya/common/nature.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/common/nature.py -------------------------------------------------------------------------------- /yaya/common/nr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/common/nr.py -------------------------------------------------------------------------------- /yaya/common/ns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/common/ns.py -------------------------------------------------------------------------------- /yaya/common/nt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/common/nt.py -------------------------------------------------------------------------------- /yaya/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/config.py -------------------------------------------------------------------------------- /yaya/const.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/const.py -------------------------------------------------------------------------------- /yaya/dictionary/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tony' 2 | -------------------------------------------------------------------------------- /yaya/dictionary/chinese_traditional_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/dictionary/chinese_traditional_dict.py -------------------------------------------------------------------------------- /yaya/dictionary/org_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/dictionary/org_dict.py -------------------------------------------------------------------------------- /yaya/dictionary/person_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/dictionary/person_dict.py -------------------------------------------------------------------------------- /yaya/dictionary/place_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/dictionary/place_dict.py -------------------------------------------------------------------------------- /yaya/recognition/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tony' 2 | 3 | -------------------------------------------------------------------------------- /yaya/recognition/organization_recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/recognition/organization_recognition.py -------------------------------------------------------------------------------- /yaya/recognition/person_recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/recognition/person_recognition.py -------------------------------------------------------------------------------- /yaya/recognition/place_recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/recognition/place_recognition.py -------------------------------------------------------------------------------- /yaya/recognition/recognition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/recognition/recognition.py -------------------------------------------------------------------------------- /yaya/seg/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tony' 2 | -------------------------------------------------------------------------------- /yaya/seg/segment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/seg/segment.py -------------------------------------------------------------------------------- /yaya/seg/viterbi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/seg/viterbi.py -------------------------------------------------------------------------------- /yaya/seg/wordnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/seg/wordnet.py -------------------------------------------------------------------------------- /yaya/utility/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tony' 2 | -------------------------------------------------------------------------------- /yaya/utility/bytearray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/utility/bytearray.py -------------------------------------------------------------------------------- /yaya/utility/chartype.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/utility/chartype.py -------------------------------------------------------------------------------- /yaya/utility/persistence.py: -------------------------------------------------------------------------------- 1 | __author__ = 'tony' 2 | -------------------------------------------------------------------------------- /yaya/utility/singleton.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Tony-Wang/YaYaNLP/HEAD/yaya/utility/singleton.py --------------------------------------------------------------------------------