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

list index out of range error #44

Open
raphael10-collab opened this issue Dec 2, 2021 · 0 comments
Open

list index out of range error #44

raphael10-collab opened this issue Dec 2, 2021 · 0 comments

Comments

@raphael10-collab
Copy link

(verbnet) raphy@pc:~/ConceptNet/Verbnet/verbnet/api$ python
Python 3.8.10 (default, Sep 28 2021, 16:10:42) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import verbnet
>>> verbnet.VerbNetParser(version="3.4")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 57, in __init__
    vc = VerbClass(parse.VNCLASS, version)
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 250, in __init__
    self.subclasses = self._subclass()
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 337, in _subclass
    return [VerbClass(sub_soup, self.version) for sub_soup in \
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 337, in <listcomp>
    return [VerbClass(sub_soup, self.version) for sub_soup in \
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 250, in __init__
    self.subclasses = self._subclass()
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 337, in _subclass
    return [VerbClass(sub_soup, self.version) for sub_soup in \
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 337, in <listcomp>
    return [VerbClass(sub_soup, self.version) for sub_soup in \
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 250, in __init__
    self.subclasses = self._subclass()
  File "/home/raphy/ConceptNet/Verbnet/verbnet/api/verbnet.py", line 335, in _subclass
    if len(subclasses_soup[0].text) < 1:
IndexError: list index out of range
>>> 

This is the config.txt :

(verbnet) raphy@pc:~/ConceptNet/Verbnet/verbnet/api$ cat config.txt 
//Set the path to where your VerbNet files live

VERBNET_PATH_3.4 = ../verbnet3.4
//VERBNET_PATH_3.3 = path/to/verbnet_version3.3

FRAMENET_MAPPING_PATH = ./verbnet3.4/

How to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant