Open Daithi-stack opened 3 years ago
Quantifier in This rule:
- name: "what-query-1" label: WhatQuery priority: 2+ example: "Find ports near Hamburg with enough excess cargo capacity to handle shipments redirected from Hamburg." pattern: | trigger = [lemma=/^(find)$/] topic:Entity? = (<<|>>)+ [incoming=nsubj] need:Entity? = (<<|>>)*? [incoming=dobj] #predicate:Verb? = (<<|>>)+ [outgoing=nsubj] constraints:Constraint* = (<<|>>)+
causes this Error:
Caused by: org.clulab.odin.impl.OdinNamedCompileException: Error parsing rule 'what-query-1': string matching regex `\p{javaJavaIdentifierStart}\p{javaJavaIdentifierPart}*' expected but `?' found
NOTE: Odin currently doesn't support greedy or lazy quantifiers for dependency patterns.
Quantifier in This rule:
causes this Error: