I already checked all similar thread, but no help.
>>> from nltk import load_parser
>>> parser = load_parser('grammars/book_grammars/drt.fcfg', logic_parser=nltk.sem.drt.DrtParser())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'DrtParser'
code is given at : http://www.nltk.org/book/ch10.html just above 5.2
>>> print nltk.sem.drt
<module 'nltk.sem.drt' from '/usr/local/lib/python2.7/dist-packages/nltk/sem/drt.pyc'>
what can be the issue?
/nltk/sem
has drt.py and drt.pyc files