question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named BobcatParser

See original GitHub issue

I’m trying to run the following code from your tutorials website, but I am unable to install BobcatParser. I am working in a Colab environment. Is there a dependency that I may be missing?

from lambeq import BobcatParser

parser = BobcatParser(root_cats=('NP', 'N'), verbose='text')

raw_train_diagrams = parser.sentences2diagrams(train_data, suppress_exceptions=True)
raw_val_diagrams = parser.sentences2diagrams(val_data, suppress_exceptions=True) 

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Thommy257commented, Aug 22, 2022

Thank you very much @mspronesti for the support!

0reactions
mspronesticommented, Aug 19, 2022

@alt-shreya Glad it worked! 😁 I guess this issue can be closed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CQCL/lambeq: A high-level Python library for ... - GitHub
The default installation of lambeq includes Bobcat parser, a state-of-the-art statistical parser (see related paper) fully integrated with the toolkit.
Read more >
Python error "ImportError: No module named" - Stack Overflow
The problem in my case was that there was the permission to newly installed modules were not 755 . That was because umask...
Read more >
lambeq 0.2.7 documentation
The path to a directory containing a Bobcat model. The name of a pre-trained model. By default, it uses the “bert” model. See...
Read more >
ModuleNotFoundError: no module named Python Error [Fixed]
When you try to import a module in a Python file, Python tries to resolve this module in several ways. Sometimes, Python throws...
Read more >
How to Fix ModuleNotFoundError and ImportError
Module imports can certainly frustrate people and especially those who are fairly new ... import aModuleNotFoundError: No module named 'a'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found