Renovamen / Text-Classification

PyTorch implementation of some text classification models (HAN, fastText, BiLSTM-Attention, TextCNN, Transformer) | 文本分类
MIT License
141 stars 29 forks source link

get_clean_text function is inside datasets.preprocess.sentence #3

Closed VinACE closed 3 years ago

VinACE commented 3 years ago

:~/Text-Classification$ python classify.py Traceback (most recent call last): File "classify.py", line 6, in from datasets.preprocess import get_clean_text ImportError: cannot import name 'get_clean_text' from 'datasets.preprocess' (unknown location)

VinACE commented 3 years ago

changed the import in classify.py from datasets.preprocess.sentence import get_clean_text

Renovamen commented 3 years ago

Fixed in https://github.com/Renovamen/Text-Classification/commit/6fdf0bdcc3e0cd6f5da24cc25421e223a05345e4, thanks!