Skip to content

Odin quantifier parsing #13

@Daithi-stack

Description

@Daithi-stack

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions