spaCy icon indicating copy to clipboard operation
spaCy copied to clipboard

noun_chunks with "one" as root noun

Open thedataist opened this issue 8 years ago • 3 comments

For sentences containing noun phrases where the root noun is "one", e.g. "I want the really expensive one", doc.noun_chunks does not currently return the noun chunk containing "one". This is probably an issue with the english models, as "one" is returned tagged as CD/NUM (cardinal number) and it should likely be NN/NOUN in this case (slightly ambiguous), but could also be handled with a special case in the syntax_iterators noun_chunks code where "one" (or any cardinal number) is allowed to appear in the root noun slot.

  • spaCy version: 2.0.9
  • Platform: Darwin-17.4.0-x86_64-i386-64bit
  • Python version: 3.6.1
  • Models: en_core_web_md, en

thedataist avatar Feb 28 '18 17:02 thedataist

save problem with me #2061

meshiguge avatar Mar 09 '18 03:03 meshiguge

The noun chunks depend on the part-of-speech tags and dependency parse, so yes, this issue likely comes down to incorrect predictions made by the tagger or parser.

I'm merging this with #3052. We've now added a master thread for incorrect predictions and related reports – see the issue for more details.

ines avatar Dec 14 '18 11:12 ines

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 13 '19 16:01 lock[bot]