Coder Social home page Coder Social logo

Comments (7)

jirvin16 avatar jirvin16 commented on September 15, 2024

Sorry that you're having trouble. Can you please share the output of this:
RerankingParser.fetch_and_load('GENIA+PubMed', verbose=True)

from chexpert-labeler.

njan-creative avatar njan-creative commented on September 15, 2024

Please find the output below.

Model directory: /home/user/.local/share/bllipparser/GENIA+PubMed
Model directory already exists, not reinstalling

RerankingParser(unified_model_dir='/home/user/.local/share/bllipparser/GENIA+PubMed')

from chexpert-labeler.

jirvin16 avatar jirvin16 commented on September 15, 2024

Could you share the entire output (with the full traceback)?

from chexpert-labeler.

njan-creative avatar njan-creative commented on September 15, 2024

Traceback (most recent call last): File "label.py", line 53, in <module> label(parser.parse_args()) File "label.py", line 44, in label classifier.classify(loader.collection) File "/DATA/njan/medical/chexpert/chexpert-labeler/stages/classify.py", line 100, in classify self.parser.parse_doc(document) File "/home/user/.local/lib/python3.7/site-packages/negbio/pipeline/parse.py", line 55, in parse_doc tree = self.parse(text) File "/home/user/.local/lib/python3.7/site-packages/negbio/pipeline/parse.py", line 34, in parse nbest = self.rrp.parse(str(s)) File "/home/njan/anaconda3/envs/negbio3.7/lib/python3.7/site-packages/bllipparser/RerankingParser.py", line 614, in parse rerank = self.check_models_loaded_or_error(rerank) File "/home/njan/anaconda3/envs/negbio3.7/lib/python3.7/site-packages/bllipparser/RerankingParser.py", line 786, in check_models_loaded_or_error raise ValueError("Parser model has not been loaded.") ValueError: Parser model has not been loaded.

from chexpert-labeler.

njan-creative avatar njan-creative commented on September 15, 2024

Traceback (most recent call last):
File "label.py", line 53, in
label(parser.parse_args())
File "label.py", line 44, in label
classifier.classify(loader.collection)
File "/DATA/njan/medical/chexpert/chexpert-labeler/stages/classify.py", line 100, in classify
self.parser.parse_doc(document)
File "/home/user/.local/lib/python3.7/site-packages/negbio/pipeline/parse.py", line 55, in parse_doc
tree = self.parse(text)
File "/home/user/.local/lib/python3.7/site-packages/negbio/pipeline/parse.py", line 34, in parse
nbest = self.rrp.parse(str(s))
File "/home/njan/anaconda3/envs/negbio3.7/lib/python3.7/site-packages/bllipparser/RerankingParser.py", line 614, in parse
rerank = self.check_models_loaded_or_error(rerank)
File "/home/njan/anaconda3/envs/negbio3.7/lib/python3.7/site-packages/bllipparser/RerankingParser.py", line 786, in check_models_loaded_or_error
raise ValueError("Parser model has not been loaded.")
ValueError: Parser model has not been loaded.

from chexpert-labeler.

jirvin16 avatar jirvin16 commented on September 15, 2024

Perhaps try uninstalling and reinstalling the parser?

The error being thrown is here, so you could try to debug by looking through that file (specifically starting with this method).

from chexpert-labeler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.