Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some failure cases #1

Open
wuhao5688 opened this issue Aug 23, 2018 · 3 comments
Open

Some failure cases #1

wuhao5688 opened this issue Aug 23, 2018 · 3 comments

Comments

@wuhao5688
Copy link
Collaborator

  • A fire hydrant pouring water from it with a neon blue glow to it.
  • Two brown bears growling at each other while laying on a log.
  • Broccoli and meat in a large pot that is ready for serving.

There is no output for these three sentences

@vacancy
Copy link
Owner

vacancy commented Aug 23, 2018

Causes for the failure:

  1. Parsing failure (A fire hydrant pouring water from it with a neon blue glow to it.)
  2. "Each other," adverbial clause (Two brown bears growling at each other while laying on a log.)
  3. Adverbial clause. (Broccoli and meat in a large pot that is ready for serving.)

@vacancy
Copy link
Owner

vacancy commented Aug 23, 2018

spaCy parsing error: Broccoli and meat in a large pot that is ready for serving.

{
  'word': 'Broccoli',
  'lemma': 'Broccoli',
  'NE': 'PERSON',
  'POS_fine': 'JJ',
  'POS_coarse': 'ADJ',
  'arc': 'ROOT',
  'modifiers': [{'word': 'and',
    'lemma': 'and',
    'NE': '',
    'POS_fine': 'CC',
    'POS_coarse': 'CCONJ',
    'arc': 'cc',
    'modifiers': []},
   {'word': 'meat',
    'lemma': 'meat',
    'NE': '',
    'POS_fine': 'NN',
    'POS_coarse': 'NOUN',
    'arc': 'conj',
    'modifiers': []},
   # ...
  ]
}

vacancy pushed a commit that referenced this issue Dec 3, 2021
fix the logic to init the SpacyParser
@MarcusNerva
Copy link

Here is a failure case:
a man is standing in front of a table

No relations are detected.

{'entities': [{'head': 'man',
'lemma_head': 'man',
'lemma_span': 'the man',
'modifiers': [{'dep': 'det',
'lemma_span': 'the',
'span': 'the'}],
'span': 'the man',
'span_bounds': (0, 2),
'type': 'unknown'},
{'head': 'table',
'lemma_head': 'table',
'lemma_span': 'a table',
'modifiers': [{'dep': 'det', 'lemma_span': 'a', 'span': 'a'}],
'span': 'a table',
'span_bounds': (7, 9),
'type': 'unknown'}],
'relations': []}

vacancy pushed a commit that referenced this issue Jan 22, 2024
update parser and test examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants