We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inherit Counter from collections, and apply filters.
Counter
collections
from konlpy.corpus import kolaw from konlpy.tag import Hannanum from konlpy.utils import FilterCounter doc = kolaw.open('constitution.txt').read() pos = Hannanum().pos(doc) cnt = FilterCounter(pos, minsyl=2, stopwords=True, ta cnt = FilterCounter(pos, minsyl=2, stopwords=True, postags="N|V|EF|^XPV|^SF") cnt.most_common(20)
The text was updated successfully, but these errors were encountered:
Filter과 counter는 따로 있는게 좋겠다는 의견이 있었습니다. (Sequence를 보존하고 싶은 경우가 있을 수 있음.)
Sorry, something went wrong.
No branches or pull requests
Inherit
Counter
fromcollections
, and apply filters.Some filter examples:
Usage example:
The text was updated successfully, but these errors were encountered: