Renovamen / Text-Classification

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

A little bug in processing data #7

Open menjiantong opened 1 year ago

menjiantong commented 1 year ago

Hello, I'm learning the source code of TextCNN,at ./datesets/preprocess/sentence.py , here

for text in row[1:]: text = get_clean_text(text) s = s + text So The last word of title and the first word of description will be a new word. I think this place should be s = s + ' ' + text;

Cgetier520990 commented 3 months ago

hi,这个项目整的可以运行起来吗?尽管我在Configs文件中,更改了某个数据集的“han”模型的路径,但是还是报错,such as:FileNotFoundError: [Errno 2] No such file or directory: 'configs/example.yaml'。 moreover,我不能知道这个项目清晰的框架,l can't find "main.py", and how to train data and test data.