mapado / pynlg

``pynlg`` is a pure python re-implementation of [SimpleNLG-EnFr](https://github.com/rali-udem/SimpleNLG-EnFr), a java library enabling bilingual [text surface realisation](https://en.wikipedia.org/wiki/Realization_%28linguistics%29), based on [SimpleNLG](https://github.com/simplenlg/simplenlg).
MIT License
29 stars 10 forks source link

AttributeError: realivised #10

Closed Catadanna closed 3 years ago

Catadanna commented 3 years ago

I get this error :

File "/my/path/pynlg/spec/phrase.py", line 147, in realise
    return self.helper.realise(phrase=self)
  File "/my/path/pynlg/helper/fr.py", line 34, in realise
    if not phrase.realivised:
  File "/my/path/pynlg/spec/base.py", line 154, in __getattr__
    raise AttributeError(name)
AttributeError: realivised

Can someone help and tell me what is wrong ? I cannot debug.

I use : Ubuntu (Linux)

jdeniau commented 3 years ago

This come from this line

I tried to bypass this with if not ('realivised' in phrase and phrase.realivised):, but there is another error after that.

I'm sorry but I won't have more time to help you on that.

Catadanna commented 3 years ago

I saw it comes from that line, and that there are bugs afterwards. I see the code is no longer maintained, it is a pity, it is a good start. I shall manage with that, and inform you if I shall make it work.