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

Calibration fails if almond_type_mapping_path is specified #236

Open
gcampax opened this issue Dec 17, 2021 · 1 comment
Open

Calibration fails if almond_type_mapping_path is specified #236

gcampax opened this issue Dec 17, 2021 · 1 comment
Assignees
Labels
bootleg Issues with NER and Bootleg bug Something isn't working

Comments

@gcampax
Copy link
Contributor

gcampax commented Dec 17, 2021

Traceback (most recent call last):
  File "/usr/local/bin/genienlp", line 33, in <module>
    sys.exit(load_entry_point('genienlp', 'console_scripts', 'genienlp')())
  File "/opt/genienlp/genienlp/__main__.py", line 108, in main
    subcommands[argv.subcommand][2](argv)
  File "/opt/genienlp/genienlp/predict.py", line 570, in main
    run(args, devices[0])
  File "/opt/genienlp/genienlp/predict.py", line 394, in run
    val_sets = prepare_data(args, src_lang)
  File "/opt/genienlp/genienlp/predict.py", line 333, in prepare_data
    ned_model = init_ned_model(args)
  File "/opt/genienlp/genienlp/ned/ned_utils.py", line 111, in init_ned_model
    ned_model = ned_class(args)
  File "/opt/genienlp/genienlp/ned/bootleg.py", line 53, in __init__
    super().__init__(args)
  File "/opt/genienlp/genienlp/ned/abstract.py", line 65, in __init__
    with open(os.path.join(self.args.root, self.args.almond_type_mapping_path)) as fin:
AttributeError: 'Namespace' object has no attribute 'root'
@gcampax gcampax added bug Something isn't working bootleg Issues with NER and Bootleg labels Dec 17, 2021
@gcampax
Copy link
Contributor Author

gcampax commented Dec 17, 2021

Affects evaluation as well:

Traceback (most recent call last):
  File "/usr/local/bin/genienlp", line 33, in <module>
    sys.exit(load_entry_point('genienlp', 'console_scripts', 'genienlp')())
  File "/opt/genienlp/genienlp/__main__.py", line 108, in main
    subcommands[argv.subcommand][2](argv)
  File "/opt/genienlp/genienlp/server.py", line 378, in main
    model, device, confidence_estimators, estimator_filenames, ned_model = init(args)
  File "/opt/genienlp/genienlp/server.py", line 333, in init
    ned_model = init_ned_model(args, 'bootleg-annotator')
  File "/opt/genienlp/genienlp/ned/ned_utils.py", line 111, in init_ned_model
    ned_model = ned_class(args)
  File "/opt/genienlp/genienlp/ned/bootleg.py", line 279, in __init__
    super().__init__(args)
  File "/opt/genienlp/genienlp/ned/bootleg.py", line 53, in __init__
    super().__init__(args)
  File "/opt/genienlp/genienlp/ned/abstract.py", line 65, in __init__
    with open(os.path.join(self.args.root, self.args.almond_type_mapping_path)) as fin:
AttributeError: 'Namespace' object has no attribute 'root'
Prediction worker had an error: Worker died

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bootleg Issues with NER and Bootleg bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants