dangvansam / phobert-text-classification

Phân loại văn bản Tiếng Việt sử dụng pretrained model - PhoBERT
8 stars 4 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'train.txt' #2

Closed namnd00 closed 2 years ago

namnd00 commented 2 years ago

When i run: python train_transformers_classifier_pytorch.py I got an error like this:

_LOADDING TEXT FILE Traceback (most recent call last): File "train_transformers_classifier_pytorch.py", line 334, in main() File "train_transformers_classifier_pytorch.py", line 325, in main train_dataloader = dataloader_from_text(train_path, tokenizer=tokenizer, classes=classes, savetodisk=None, max_len=MAX_LEN, batch_size=64) File "train_transformers_classifier_pytorch.py", line 30, in dataloader_from_text with open(text_file, 'r') as fr: FileNotFoundError: [Errno 2] No such file or directory: 'train.txt'

Can you give me train.txt dataset file? Thank you.

dangvansam commented 2 years ago

file training có dung lượng khá lớn nên mình không upload lên đây, bạn có thể sử dụng file test.txt để chạy test