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

"Evaluate current model using CoNLL script" does no run #2

Open
XinyiYan-njust opened this issue Mar 11, 2022 · 0 comments
Open

"Evaluate current model using CoNLL script" does no run #2

XinyiYan-njust opened this issue Mar 11, 2022 · 0 comments

Comments

@XinyiYan-njust
Copy link

It seems like there is somthing wrong with → “os.system("%s < %s > %s"%(eval_script, output_path, scores_path))”
the files in output_path have text however the files in scores_path are null, which lead to the list of eval_lines being null.

The error is showing below:
'evaluation' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Traceback (most recent call last):
File "C:/Users/70962/PycharmProjects/named-entity-recognition/ner-tagger/train.py", line 255, in
dev_data, id_to_tag, dico_tags, epoch)
File "C:\Users\70962\PycharmProjects\named-entity-recognition\ner-tagger\utils.py", line 353, in evaluate
print(eval_lines[1])
IndexError: list index out of range

BTW input parameters are
--train
../data/train/train.txt
--dev
../data/dev/dev.txt
--test
../data/test/test.txt
--eval
evaluation/temp
--model
model
--tag_scheme
iob
--zeros
1
--with_eeg_gaze
1
--bins
100
--fold
50

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