Skip to content
New issue

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

NewsNounExtractor 내 지역 변수 선언 관련 오류 #129

Open
hungry-wook opened this issue Feb 1, 2021 · 1 comment
Open

NewsNounExtractor 내 지역 변수 선언 관련 오류 #129

hungry-wook opened this issue Feb 1, 2021 · 1 comment

Comments

@hungry-wook
Copy link
Collaborator

from soynlp.noun import NewsNounExtractor
noun_extractor = NewsNounExtractor()

위와 같이 실행 시 아래와 같은 메시지가 출력됩니다.
local variable 'f' referenced before assignment

사용환경은 python3.8입니다

@lovit
Copy link
Owner

lovit commented Feb 1, 2021

from soynlp.noun import NewsNounExtractor
noun_extractor = NewsNounExtractor()

위와 같이 실행 시 아래와 같은 메시지가 출력됩니다.
local variable 'f' referenced before assignment

사용환경은 python3.8입니다

해당 오류 메시지는 input 파일이 제대로 입력되지 않았을 때 발생하는 오류입니다. input 파일 확인 부탁드립니다.

위 이슈는 다른 곳에서 수정되었는데, 아직 패키지 리팩중이라 배포 버전에 반영하지 못했습니다.
곧 수정 반영된 버전 배포하겠습니다.

더하여, 뉴스 기사에서 명사를 추출하려는 목적에 해당 클래스 사용하시는 걸로 알고 있는데, 여러 실험에서 NonuExtractor_v2 가 더 좋은 성능을 보였습니다. 참고해주세요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants