Skip to content

Locate pattern recognizes tokens when invoked with the <E> query #111

Description

@eric-laporte

Describe the bug

When "Locate Pattern" is invoked on a main graph that recognizes the empty word, the path that recognizes the empty word does find tokens.

What steps will reproduce the problem?

  1. Open and preprocess a corpus
  2. Invoke "Locate Pattern" with the query as Regular expression

What is the expected output?

Either the system should reject the query because it recognizes the empty word, or the system should not return any tokens, because doesn't match any token

What do you see instead?

The system issues 2 warnings in red characters to warn that the main graph recognizes the empty word, but it reports a number of matches equal to the number of tokens in the corpus.

More info

  • Unitex/GramLab IDE version: 3.2.130
  • UnitexToolLogger version: 3.2.131
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions