Skip to content

튜토리얼 진행상 문제 #3

Open

Description

@taehyun-lim

안녕하세요,
한국어 텍스트 분석을 하고 싶어서 찾아왔습니다.
좋은 패키지 감사합니다.
nounextractor-v2_usage.ipynb 튜토리얼을 따라하고 있는데요,
세번째 셀
"%%time
noun_extractor = LRNounExtractor_v2(verbose=True, extract_compound=True)
noun_extractor.train(sents)
nouns = noun_extractor.extract()"
에서 다음과 같은 에러가 납니다:
[Noun Extractor] use default predictors
[Noun Extractor] num features: pos=3929, neg=2321, common=107
[Noun Extractor] counting eojeols
local variable 'f' referenced before assignment
어떻게 해야 할까요?
감사합니다.

Activity

  1. lovit commented on Feb 19, 2020

    @lovit
    Owner
  2. taehyun-lim commented on Feb 20, 2020

    @taehyun-lim
    Author

    감사합니다! 해결하였습니다.

    제 데이터로 시행해보고 있는데요, 다른건 다 잘되는 것 같은데 몇개의 명사가 추출이 되지 않는 것 같습니다.
    예를들어 '고령화가'가 5번 들어있는데 '고령'도 '고령화'도 추출되지 않습니다.
    '고령화'를 추출할 수 있게 바꿀 수 있는 방법이 혹시 있을까요?

    감사합니다!

  3. lovit commented on Feb 20, 2020

    @lovit
    Owner
  4. taehyun-lim commented on Feb 20, 2020

    @taehyun-lim
    Author

    말씀하신대로 '고령화'에 다른 조사들도 붙여보니 추출이 되네요. 감사합니다!

  5. lovit commented on Feb 20, 2020

    @lovit
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions