Grammar for Syntactic Analysis stop NLTK Python - continue on the other line

0

I am building the grammar in an out-of-code file, however the lines are very long and I would like to know a way to continue on the other line without any execution error.

When I put it to continue on another line, for example:

N -> 'dog'|'cat'|'mouse'|'monkey'|'duck'|'pig'|<br/>
        'desk'|'pen'|'table'<p>
  

The error occurs:

ValueError: Unable to parse line 36:<br/>
'desk'|'pen'|'table'<br/>
Expected a nonterminal, found:<br/>
'desk'|'pen'|'table'
    
asked by anonymous 22.08.2018 / 15:28

0 answers