[DP-466] _map_tags() 단어 경계 매칭 적용#68
Merged
Merged
Conversation
단순 in 포함 검색을 \b 정규식 기반 단어 경계 매칭으로 교체해 'Django'에서 'Go', 'going'에서 'Go' 등 부분 문자열 오매칭 방지. snippet.tags 매칭도 동일한 방식으로 통일. 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.
연결된 지라 Jira 티켓
작업내용
_map_tags()에서 단순in포함 검색이 짧은 태그(Go, RDS 등)를 관련 없는 영상에 오매칭하는 문제 수정.예시:
"Django tutorial"→"django"에"go"포함 → Go 태그 오매칭"going through issues"→"going"에"go"포함 → Go 태그 오매칭변경점
app/collectors/backfill/youtube.py:_map_tags()텍스트 매칭을\b단어 경계 정규식으로 교체tests/test_youtube_collector.py: 단어 경계 관련 인수 조건 테스트 4건 추가테스트
인수 조건 확인:
"Django tutorial"+["Go"]→ Go 매칭 안 됨 ✓"Learn Go programming"+["Go"]→ Go 정상 매칭 ✓"golang"+["Go"]→ Go 매칭 안 됨 ✓리스크/주의사항
AI 사용 여부