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

Inconsistent parts of speech #2

Open
evanmiltenburg opened this issue Sep 22, 2015 · 1 comment
Open

Inconsistent parts of speech #2

evanmiltenburg opened this issue Sep 22, 2015 · 1 comment

Comments

@evanmiltenburg
Copy link

Compare:

>>> x = instance.synsets_get_generator()
>>> s = next(x)
>>> s.get_pos()
'n'

With:

>>> le_el = instance.les_find_le("havenplaats-n-1")
>>> le_el.get_pos()
'noun'
@vHeemstra
Copy link

vHeemstra commented May 30, 2017

This is because the Synset class has no Lexical entry element (e.g. self.le_el) linked. So it can't call .get("PartOfSpeech") on that.

From get_pos(self) in synset.py:
return self.get_id()[-1]

From get_pos(self) in le.py:
return self.le_el.get("partOfSpeech")

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

2 participants