German parsetree lemmatising wrong?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
We are using Pattern 2.6 and we ran some quick tests regarding German lemmatising. Our goal is to get all lemmas of a German string.
The following code snippet lemmatises a German string and reproduces a particular example issue:
from pattern.de import parsetree
s=parsetree('Der betrogenen Briten', lemmata = True)
print s
yields the following output
[Sentence('Der/DT/B-NP/O/der betrogenen/NN/I-NP/O/betrogenen Briten/NN/I-NP/O/briten')]
However, betrogenen should be lemmatised into betrogen and Briten into brite instead. Are we overlooking something? Should we send our issue to someone in particular?
Thank you very much!
Best, Josef
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied Python reproduction using pattern.de.parsetree and lemmata=True, then trace the German lemmatisation path responsible for the output. Confirm the expected lemmas for “betrogenen” and “Briten” and add or update coverage so the example produces “betrogen” and “brite”.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100