yzhangcs / parser

:rocket: State-of-the-art parsers for natural language.
https://parser.yzhang.site/
MIT License
824 stars 138 forks source link

Error Loading Multilingual Dependency Parsing Model #140

Closed chimran135 closed 18 hours ago

chimran135 commented 1 month ago

I'm having issue loading multilingual dependency parsing model, named biaffine-dep-xlmr.

System Specifications: PyTorch: 2.3.0+cu121 Transformers: 4.41.1 Python: 3.10.14 Supar: 1.1.4

Code to Reproduce: from supar import Parser parser = Parser.load('biaffine-dep-xlmr') # Throws error while loading multilingual dependency parsing model

Error Messages: RuntimeError: File biaffine-dep-xlmr unavailable. Please try other sources. or ModuleNotFoundError: No module named 'supar.config'

Steps Taken to Install SuPar:

  1. Using pip install: pip install -U supar Error Encountered: ModuleNotFoundError: No module named 'supar.config'
  2. Cloning source from GitHub: pip install -U git+https://github.com/yzhangcs/parser Error Encountered: ModuleNotFoundError: No module named 'supar.config'
  3. Manual Download and Installation: Manually downloaded the SuPar code from GitHub and placed it in the site-packages directory of my virtual environment. RuntimeError: File biaffine-dep-xlmr unavailable. Please try other sources.

Additional Information: The following code works fine with other pre-trained parsers: from supar import Parser parser = Parser.load('crf2o-dep-en') # Works fine without any issues

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 18 hours ago

This issue was closed because it has been inactive for 7 days since being marked as stale.