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

TypeError: an integer is required (got type str) #7

Open
Salidor opened this issue Apr 25, 2020 · 0 comments
Open

TypeError: an integer is required (got type str) #7

Salidor opened this issue Apr 25, 2020 · 0 comments

Comments

@Salidor
Copy link

Salidor commented Apr 25, 2020

Getting the following error. Did someone face the same?

Embedding length is 100.
You have elected to include embeddings that are out-of-corpus.

Loading embeddings...
Traceback (most recent call last):
  File "train.py", line 356, in <module>
    main()
  File "train.py", line 79, in main
    expand_vocab)  # load pre-trained embeddings
  File "C:\Users\user\Desktop\NLP\a-PyTorch-Tutorial-to-Sequence-Labeling-master\utils.py", line 230, in load_embeddings
    for line in open(emb_file, 'r', 'utf-8'):
TypeError: an integer is required (got type str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant