Skip to content

ValueError in parsing using genia #118

Description

@blackbirt-5

Hi,

I am interested in the parsing field of nlp and am studying sciBERT. In parsing using genia, ValueError was raised as shown in the attached file.
How can I solve this?

Many thanks!

ps) Other TASKs run fine.

2021-07-01 12:51:39,366 - INFO - allennlp.training.trainer - Training
0%| | 1/896 [00:04<1:00:43, 4.07s/it]
Traceback (most recent call last):
File "/home/centos/miniconda3/envs/test_38/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/centos/miniconda3/envs/test_38/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/centos/ML/src/allennlp/allennlp/run.py", line 21, in
run()
File "/home/centos/ML/src/allennlp/allennlp/run.py", line 18, in run
main(prog="allennlp")
File "/home/centos/ML/src/allennlp/allennlp/commands/init.py", line 102, in main
args.func(args)
File "/home/centos/ML/src/allennlp/allennlp/commands/train.py", line 117, in train_model_from_args
train_model_from_file(args.param_path,
File "/home/centos/ML/src/allennlp/allennlp/commands/train.py", line 163, in train_model_from_file
return train_model(params,
File "/home/centos/ML/src/allennlp/allennlp/commands/train.py", line 252, in train_model
metrics = trainer.train()
File "/home/centos/ML/src/allennlp/allennlp/training/trainer.py", line 539, in train
train_metrics = self._train_epoch(epoch)
File "/home/centos/ML/src/allennlp/allennlp/training/trainer.py", line 372, in _train_epoch
raise ValueError("nan loss encountered")
ValueError: nan loss encountered

error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions