davidadamojr/TextRank
소개
TextRank 알고리즘을 Python으로 구현한 프로젝트로, 텍스트 단위 간의 관계를 레벤슈타인 거리로 나타내 키워드를 자동으로 추출하고 요약합니다. Rada Mihalcea와 Paul Tarau의 논문 "TextRank: Bringing Order into Text"를 기반으로 합니다. https://web.eecs.umich.edu/~mihalcea/papers/mihalcea.emnlp04.pdf
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTextRank
This is a python implementation of TextRank for automatic keyword and sentence extraction (summarization) as done in https://web.eecs.umich.edu/~mihalcea/papers/mihalcea.emnlp04.pdf. However, this implementation uses Levenshtein Distance as the relation between text units.
This implementation carries out automatic keyword and sentence extraction on 10 articles gotten from http://theonion.com
- 100 word summary
- Number of keywords extracted is relative to the size of the text (a third of the number of nodes in the graph)
- Adjacent keywords in the text are concatenated into keyphrases
Usage
To install the library run the setup.py module located in the repository's root directory. Alternatively, if you have access to pip you may install the library directly from github:
pip install git+https://github.com/davidadamojr/TextRank.git
Use of the library requires downloading nltk resources. Use the textrank initialize command to fetch the required data. Once the data has finished downloading you may execute the following commands against the library:
textrank extract_summary <filename>
textrank extract_phrases <filename>
Contributing
Install the library as "editable" within a virtual environment.
pip install -e .
Dependencies
Dependencies are installed automatically with pip but can be installed serparately.
- Networkx - https://pypi.python.org/pypi/networkx/
- NLTK 3.0 - https://pypi.python.org/pypi/nltk/3.2.2
- Numpy - https://pypi.python.org/pypi/numpy
- Click - https://pypi.python.org/pypi/click
관련 프로젝트 살펴보기
불러오는 중…