├── .github ├── ISSUE_TEMPLATE │ ├── bug-report.md │ ├── feature-request.md │ └── usage-question.md └── stale.yml ├── .gitignore ├── LICENSE ├── README.md ├── docs ├── gbdt.png ├── logo.svg ├── pke_zh.png ├── solution.md └── wechat.jpeg ├── examples ├── build_pmi_dict.py ├── data │ ├── test.csv │ ├── train.csv │ └── wiki_zh.txt ├── keybert_demo.py ├── keyphrase_extraction_demo.py ├── keysentences_extraction_demo.py ├── train_supervised_wordrank_demo.py └── unsupervised_demo.py ├── pke_zh ├── __init__.py ├── base.py ├── data │ ├── common_char_set.txt │ ├── entropy_word_score.json │ ├── person_name.txt │ ├── place_name.txt │ ├── pmi_word_score.json │ └── stopwords.txt ├── data_structures.py ├── keybert.py ├── multipartiterank.py ├── positionrank.py ├── readers.py ├── singlerank.py ├── textrank.py ├── tfidf.py ├── topicrank.py ├── utils │ ├── __init__.py │ ├── file_utils.py │ ├── io_utils.py │ ├── text_utils.py │ └── tokenizer.py ├── version.py ├── wordrank.py ├── yake.py └── yake_zh.py ├── requirements.txt ├── setup.py └── tests ├── test_pmi.py ├── test_qps.py ├── test_supervised.py ├── test_textrank.py └── test_unsupervised.py /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/.github/ISSUE_TEMPLATE/bug-report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature-request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/.github/ISSUE_TEMPLATE/feature-request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/usage-question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/.github/ISSUE_TEMPLATE/usage-question.md -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/README.md -------------------------------------------------------------------------------- /docs/gbdt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/docs/gbdt.png -------------------------------------------------------------------------------- /docs/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/docs/logo.svg -------------------------------------------------------------------------------- /docs/pke_zh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/docs/pke_zh.png -------------------------------------------------------------------------------- /docs/solution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/docs/solution.md -------------------------------------------------------------------------------- /docs/wechat.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/docs/wechat.jpeg -------------------------------------------------------------------------------- /examples/build_pmi_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/build_pmi_dict.py -------------------------------------------------------------------------------- /examples/data/test.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/data/test.csv -------------------------------------------------------------------------------- /examples/data/train.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/data/train.csv -------------------------------------------------------------------------------- /examples/data/wiki_zh.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/data/wiki_zh.txt -------------------------------------------------------------------------------- /examples/keybert_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/keybert_demo.py -------------------------------------------------------------------------------- /examples/keyphrase_extraction_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/keyphrase_extraction_demo.py -------------------------------------------------------------------------------- /examples/keysentences_extraction_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/keysentences_extraction_demo.py -------------------------------------------------------------------------------- /examples/train_supervised_wordrank_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/train_supervised_wordrank_demo.py -------------------------------------------------------------------------------- /examples/unsupervised_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/examples/unsupervised_demo.py -------------------------------------------------------------------------------- /pke_zh/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/__init__.py -------------------------------------------------------------------------------- /pke_zh/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/base.py -------------------------------------------------------------------------------- /pke_zh/data/common_char_set.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/data/common_char_set.txt -------------------------------------------------------------------------------- /pke_zh/data/entropy_word_score.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/data/entropy_word_score.json -------------------------------------------------------------------------------- /pke_zh/data/person_name.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/data/person_name.txt -------------------------------------------------------------------------------- /pke_zh/data/place_name.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/data/place_name.txt -------------------------------------------------------------------------------- /pke_zh/data/pmi_word_score.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/data/pmi_word_score.json -------------------------------------------------------------------------------- /pke_zh/data/stopwords.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/data/stopwords.txt -------------------------------------------------------------------------------- /pke_zh/data_structures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/data_structures.py -------------------------------------------------------------------------------- /pke_zh/keybert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/keybert.py -------------------------------------------------------------------------------- /pke_zh/multipartiterank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/multipartiterank.py -------------------------------------------------------------------------------- /pke_zh/positionrank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/positionrank.py -------------------------------------------------------------------------------- /pke_zh/readers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/readers.py -------------------------------------------------------------------------------- /pke_zh/singlerank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/singlerank.py -------------------------------------------------------------------------------- /pke_zh/textrank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/textrank.py -------------------------------------------------------------------------------- /pke_zh/tfidf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/tfidf.py -------------------------------------------------------------------------------- /pke_zh/topicrank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/topicrank.py -------------------------------------------------------------------------------- /pke_zh/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pke_zh/utils/file_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/utils/file_utils.py -------------------------------------------------------------------------------- /pke_zh/utils/io_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/utils/io_utils.py -------------------------------------------------------------------------------- /pke_zh/utils/text_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/utils/text_utils.py -------------------------------------------------------------------------------- /pke_zh/utils/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/utils/tokenizer.py -------------------------------------------------------------------------------- /pke_zh/version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/version.py -------------------------------------------------------------------------------- /pke_zh/wordrank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/wordrank.py -------------------------------------------------------------------------------- /pke_zh/yake.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/yake.py -------------------------------------------------------------------------------- /pke_zh/yake_zh.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/pke_zh/yake_zh.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/setup.py -------------------------------------------------------------------------------- /tests/test_pmi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/tests/test_pmi.py -------------------------------------------------------------------------------- /tests/test_qps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/tests/test_qps.py -------------------------------------------------------------------------------- /tests/test_supervised.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/tests/test_supervised.py -------------------------------------------------------------------------------- /tests/test_textrank.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/tests/test_textrank.py -------------------------------------------------------------------------------- /tests/test_unsupervised.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/pke_zh/HEAD/tests/test_unsupervised.py --------------------------------------------------------------------------------