Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Prediction works for direct_nlp but crashes for hybrid and None/default #15

@howff

Description

@howff

With predict_mode set to hybrid

[predict_helper.py:26] root 2022-01-17 16:18:18,330 working on [atrophy]
Traceback (most recent call last):
  File "nlp2phenome/predict_helper.py", line 184, in <module>
    predict_to_eHOST_results(sys.argv[1])
  File "nlp2phenome/predict_helper.py", line 165, in predict_to_eHOST_results
    predicted_results = hybrid_prediciton(ss.settings)
  File "nlp2phenome/predict_helper.py", line 78, in hybrid_prediciton
    d2p, labels2work = predict(settings)
  File "nlp2phenome/predict_helper.py", line 43, in predict
    full_text_dir=test_text_dir)
TypeError: load_data_for_predict() got an unexpected keyword argument 'concept_mapping_file'

Without predict_mode

[predict_helper.py:167] root 2022-01-17 16:18:45,485 predicting...
[predict_helper.py:26] root 2022-01-17 16:18:45,486 working on [atrophy]
Traceback (most recent call last):
  File "nlp2phenome/predict_helper.py", line 184, in <module>
    predict_to_eHOST_results(sys.argv[1])
  File "nlp2phenome/predict_helper.py", line 168, in predict_to_eHOST_results
    predicted_results = predict(ss.settings)
  File "nlp2phenome/predict_helper.py", line 43, in predict
    full_text_dir=test_text_dir)
TypeError: load_data_for_predict() got an unexpected keyword argument 'concept_mapping_file'

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