goodmami / wn

A modern, interlingual wordnet interface for Python
https://wn.readthedocs.io/
MIT License
197 stars 19 forks source link

Syntactic behaviours not being properly added #156

Closed goodmami closed 2 years ago

goodmami commented 2 years ago

In the change to the new LMF parser, the code to insert syntactic behaviours is currently broken in the way it links them to senses. For example, here's a sense with subcat frames specified:

...
    <LexicalEntry id="omw-en-chase-v">
      <Lemma writtenForm="chase" partOfSpeech="v" />
      <Sense id="omw-en-chase-02001858-v" synset="omw-en-02001858-v" dc:identifier="chase%2:38:00::" subcat="frame-8 frame-9 frame-10">
...

And here's what happens when attempting to retrieve them:

>>> import wn
>>> en = wn.Wordnet('omw-en')
>>> en.sense('omw-en-chase-02001858-v').frames()
[]

It seems that currently WN-LMF 1.0 syntactic behaviours are working, at least partially, so the tests are passing.