ReturnZero: WFSTClassifier 리팩토링 및 명명 규칙 정리

Source

  • Field Notes/ReturnZero/Daily Notes/Day 462. 2022-10-05.md

Summary

WFSTClassifier를 RuleBasedHighlighter로 이름 변경하고, 불필요한 함수(fst_closure, blacklist_closure 등)를 삭제하며, predict 함수의 명칭과 반환 구조(composite/atomic class 분리)를 개선하는 리팩토링 작업 기록.

Key Points

  • 클래스명 변경: WFSTClassifier → RuleBasedHighlighter
  • 불필요 함수 삭제: fst_closure, blacklist_closure, get_tag_from_token_index, _detect_single_class, categorize_atomic_class
  • predict 함수 명칭 검토: predict_sentence() 또는 highlight_sentence()로 변경 고려
  • predict 결과 구조화: composite 결과와 atomic class 리스트 분리 반환
  • WFST Cache 관련 작업 언급