Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huấn luyện mô hình fasttext #35

Open
quynhvan opened this issue Mar 28, 2020 · 1 comment
Open

huấn luyện mô hình fasttext #35

quynhvan opened this issue Mar 28, 2020 · 1 comment

Comments

@quynhvan
Copy link

Khi em chạy lệnh huấn luyện mô hình python train.py --train data/train.txt --s snapshots với file train.py nằm ở classification/egs/vntc_fasttext/train.py thì báo lỗi sau ạ

Traceback (most recent call last):
File "train.py", line 20, in
fasttext.train_supervised(train_path, '{}/model'.format(serialization_dir))
File "/home/van/anaconda3/lib/python3.7/site-packages/fasttext/FastText.py", line 429, in train_supervised
a = _build_args(params)
File "/home/van/anaconda3/lib/python3.7/site-packages/fasttext/FastText.py", line 333, in _build_args
setattr(a, k, v)
TypeError: (): incompatible function arguments. The following argument types are supported:
1. (self: fasttext_pybind.args, arg0: float) -> None

Invoked with: <fasttext_pybind.args object at 0x7f6bbed0c030>, '/home/van/Download/classification/egs/vntc_fasttext/snapshots/model'

@rain1024 rain1024 transferred this issue from another repository Jan 15, 2021
@rain1024
Copy link
Collaborator

@quynhvan

Mình vừa cập nhật lại tutorial về huấn luyện hàm phân loại. Bạn xem ở đây nhé

https://github.com/undertheseanlp/playground/tree/master/plays/classification#training-a-vietnamese-text-classifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants