Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试解析与此类似的语法。
PER -> 'noun' | 'noun1' | 'noun2' PERS -> PER+
这不是 NLTK 的递归下降解析器的有效语法。如何在此语法中指定多个重复标记之一
尝试如下规则:
PERS -> PER PERS | PER