Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

tidytext 패키지와 사용할 경우 토크나이저에서 에러발생 사례 #33

Open
choonghyunryu opened this issue Nov 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@choonghyunryu
Copy link
Contributor

choonghyunryu commented Nov 27, 2022

현상

tidytext 패키지와 사용할 경우에는 토크나이저의 경우에는 무조건 1개 이상의 토큰을 반환해야 함
그렇지 않으면 다음과 같은 에러가 발생함

Error in `tidytext::unnest_tokens()`:
! Expected output of tokenizing function to be a list of length 150000

만약에 토큰화에서 토큰이 없을 경우에는 ""라도 반환해야 함

관련 함수

  • unnest_noun_ngrams
  • tokenize_noun_ngrams
@choonghyunryu choonghyunryu added the bug Something isn't working label Nov 27, 2022
@choonghyunryu choonghyunryu self-assigned this Nov 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant