8000 MeCab 실행시 PicklingError: Could not pickle the task to send it to the workers. 오류 · Issue #1 · rickiepark/introduction_to_ml_with_python · GitHub
[go: up one dir, main page]

Skip to content
MeCab 실행시 PicklingError: Could not pickle the task to send it to the workers. 오류 #1
@YongBeomKim

Description

@YongBeomKim

마지막장 konlpy 응용 부분에서 scikit-learn 을 0.20 최신 버전으로 실습하면
MeCab을 활용한 GridSearch 부분에서 n_job을 -1로 변경하고 실행하면 오류가 나네요 ㅠㅠ
대신 scikit-learn 을 0.19로 내리면 잘 작동 됩니다. 관련해서 아시는 분들 도움 부탁드려요

mecab_pipe = make_pipeline(TfidfVectorizer(tokenizer = mecab_tokenizer), 
                           LogisticRegression(solver = 'liblinear'),
                           memory = cache_dir)
mecab_grid = GridSearchCV(mecab_pipe, mecab_param_grid, n_jobs=-1, cv=3)
mecab_grid.fit(text_train, y_train)  # 그리드 서치를 수행
/usr/lib/python3.6/concurrent/futures/_base.py in __get_result(self)
    382     def __get_result(self):
    383         if self._exception:
--> 384             raise self._exception
    385         else:
    386             return self._result
PicklingError: Could not pickle the task to send it to the workers.

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

      0