baidu / baidu/information-extraction

get_vocab.py运行出错

Open
#5 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
330
Forks
93
PR merge metrics
No merged PRs in 30d

Description

您好,在运行get_vocab.py时报出错误
Traceback (most recent call last):
File "lib/get_vocab.py", line 89, in
get_vocab(train_file, dev_file)
File "lib/get_vocab.py", line 61, in get_vocab
raise ValueError('The length of dev word is 0')
ValueError: The length of dev word is 0
想请教一下这个该如何解决呢?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading lib/get_vocab.py around lines 61 and 89, then inspect the train and dev file arguments passed to get_vocab. Reproduce the command with the referenced data and determine why the dev vocabulary is empty; done means the script completes without this ValueError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.