a-PyTorch-Tutorial-to-Sequence-Labeling icon indicating copy to clipboard operation
a-PyTorch-Tutorial-to-Sequence-Labeling copied to clipboard

TypeError: an integer is required (got type str)

Open Salidor opened this issue 5 years ago • 0 comments

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)

Salidor avatar Apr 25 '20 16:04 Salidor