Skip to content

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

@Salidor

Description

@Salidor

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions