[DP-381] 한국어 토크나이저 + TF-IDF 키워드 추출 구현#53
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
KoreanTokenizer: kiwipiepy 형태소 분석(NNG/NNP/SL), 불용어·짧은 토큰·숫자 토큰 제거TfidfAnalyzer: scikit-learn TfidfVectorizer(1~2gram, top 30) 기반 키워드·점수 추출, cold start fallback 포함app/core/data/stopwords_ko.txt: 한국어 개발 블로그 특화 불용어 ~350개 (일반명사·필러·영어 일반어)requirements.txt: kiwipiepy, scikit-learn 추가Test plan
pytest tests/test_trend_tokenizer.py— 5개 (POS 필터, 숫자 제거, 불용어, 빈 입력, 공백 조인)pytest tests/test_trend_tfidf.py— 5개 (top_n, 정렬, 빈 입력, cold start fallback, 튜플 형식)pytest -q전체 382개 통과 확인ruff check . && black --check .통과🤖 Generated with Claude Code