Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In morphological mode, <!DIC> is processed like <DIC> #49

Open
eric-laporte opened this issue Jun 20, 2018 · 0 comments
Open

In morphological mode, <!DIC> is processed like <DIC> #49

eric-laporte opened this issue Jun 20, 2018 · 0 comments

Comments

@eric-laporte
Copy link
Member

In morphological mode, the lexical mask <!DIC> has the same effect as <DIC>.

What steps will reproduce the problem?

  1. Open 80jours in French

  2. Set dela-fr-public as morphological-mode dictionary

  3. Search the corpus for test-not-dic.grf (attached graph, bug-not-dic.zip ) and generate a concordance

  4. Repeat step 3 with test-dic.grf (attached)

What is the expected output?

No occurrence should be present in both concordances.
In the default mode, <!DIC> means 'a word not in any of the current dictionaries'. In the morphological mode, it should logically mean 'a sequence of letters not in any of the morphological-mode dictionaries'.

What do you see instead?

The two concordances are identical and contain several occurrences.

More info

  • The easy solution is to reject <!DIC> when in the morphological mode.

  • A user contacted me to ask for an implementation of the expected behaviour of <!DIC> in the morphological mode. There is a solution without <!DIC> (replace <!DIC> with a <LETTER> loop and name the graph with a name ending in +), but it is different: it checks that the complete word has not been found in dictionaries before.

  • A negation of a lexical mask, e.g. <!N:ms>, also has the same effect as <DIC>.

  • Unitex/GramLab IDE version: 3.2.59 alpha

  • UnitexToolLogger version: 3.2.59 alpha

  • Did this work before?: probably not

  • Forum thread:

  • Log file (.ulp):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants