-
Notifications
You must be signed in to change notification settings - Fork 10
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
fairseq\fairseq\data\dictionary.py", line 259, in add_from_file raise ValueError( ValueError: Incorrect dictionary format, expected '<token> <cnt> [flags]' #2
Comments
This is because of fairseq version or lfs version. Please try updated steps given for installation. Also, make sure to take updated repo. |
Closing the issue due to inactivity. Please open the same if you have further doubt. |
Hi , |
Because of only appending the token without (cnt tag, I don't really know what does it present for) Do you guys have any other approach, please share. I do really appreciate that. |
Opening the issue again ... it is happening bcz I initially used git-lfs for file storage and later removed. And sorry for the super delayed reply .. didn't notice bcz of closed issue @akshay951228 @lacls |
Issues with LFS Due to various issues with LFS files initially added to LFS later removed .. created unstable file versions which are currently present in repo. |
@lacls @akshay951228 plz do check and let me know in case of any issue ... I have checked on my setup. |
I got this error because my dictionary file generated by sentencepiece tokenizer was tab-separated. Replacing the tabs by space solved it for me. Remember to also remove the unknown, bos, and eos tokens from the dictionary if you are using sentencepiece. |
deleted unk, s, /s, to avoid the error, swapniljadhav1921/asamiasami#2
OS: Windows
While createing a class , below error occurred:
q\fairseq\data\dictionary.py", line 246, in add_from_file
count = int(field)
ValueError: invalid literal for int() with base 10: 'https://git-lfs.github.com/spec/v1'
Stacktrace shows:
fairseq\data\dictionary.py", line 259, in add_from_file
raise ValueError(
ValueError: Incorrect dictionary format, expected ' [flags]'
I believe the wrong value of the field is being set somewhere
Code:
The text was updated successfully, but these errors were encountered: