Skip to content

Words that match more than one lemma #94

Description

@juanjoDiaz

Hi,

I noticed a problem with the behaviour for the word 'schulen' in German (as a noun vs as a verb) when using all capitals:

>>> simplemma.lemmatize("Schulen", "de")
'Schule'  # plural form lemmatized as noun "Schule"
>>> simplemma.lemmatize("schulen", "de")
'schulen'  # infinitive form lemmatized as verb "schulen"

The all-caps version appears to result in a match with the lowercase :

>>> simplemma.lemmatize("SCHULEN", "de")
'schulen'

Of course, it is impossible to know which version to prefer in the case.

I noticed that some of the words in the dictionaries contain more than one lemma.
for example

>>> simplemma.lemmatize("Sie", "de")
'Sie|sie'

Why are there words with multiple lemmas in the dictionaries?
Should we consider adding this on simplemma side? I mean changing the strategies so they can have multiple matches and return them somehow.

Wdyt?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions