Wrong tagging on lowercase words ?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
"peter" is wrongly tagged as VB ....
In [205]: from pattern.en import *
In [206]: incorrect = Sentence(parse('peter owns a house'))
In [207]: pprint(incorrect)
WORD TAG CHUNK ROLE ID PNP LEMMA
peter VB VP - - - -
owns VBZ VP ^ - - - -
a DT NP - - - -
house NN NP ^ - - - -
In [208]: correct = Sentence(parse('Peter owns a house'))
In [209]: pprint(correct)
WORD TAG CHUNK ROLE ID PNP LEMMA
Peter NNP NP - - - -
owns VBZ VP - - - -
a DT NP - - - -
house NN NP ^ - - - -
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
Reproduce the issue through pattern.en.parse using the lowercase and capitalized versions of “peter owns a house,” then inspect the tagging path used by parse. Done means the lowercase form receives the intended noun/proper-name tagging without changing the correct tags for “owns,” “a,” and “house”.
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
- 30/100