from sklearn.feature_extraction.text import CountVectorizer
import nltk
vect = CountVectorizer(tokenizer=nltk.word_tokenize,analyzer='word').fit(mom['sentens'])
vect.vocabulary_
vect.get_feature_names()
이 코드를 진행하는데 warning이 떴다.
뭐지? 했는데 수행하는데 시간이 좀 걸려서 뜨는거지 무시하고 다시 실행하면 정상적으로 작동한다.
'오류' 카테고리의 다른 글
[PYTHON] WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available. (0) | 2022.12.17 |
---|---|
[PYTHON] TypeError : 'int' object is not iterable (0) | 2022.09.18 |
[SQL] Only full group by 에러 (0) | 2022.03.16 |
[PYTHON] random_state_index is incorrect (0) | 2021.11.03 |
[PYTHON] pip is configured with locations that require TLS/SSL (0) | 2021.10.23 |