clips / clips/pattern

Wrong tagging on lowercase words ?

Open
#286 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.