Identifying the object in a sentence with a compliment #13124
-
Hi, "She considers him a friend." Spacy tags this as follows: | Text | Index | POS | Tag | Dep | Dep Detail | Ancestors | Children | Token Head
| ------ | ------ | ---- | ------- | ------- | --------- | ------- | ------- | ------- |
| She | 0 | PRON | PRP | nsubj | nominal subject | considers | | considers |
| considers | 1 | VERB | VBZ | ROOT | root | | She friend . | considers |
| him | 2 | PRON | PRP | nsubj | nominal subject | friend considers | | friend |
| a | 3 | DET | DT | det | determiner | friend considers | | friend |
| friend | 4 | NOUN | NN | ccomp | clausal complement | considers | him a | considers |
| . | 5 | PUNCT | . | punct | punctuation | considers | | considers | "him" is identified as a nominal subject. Shouldn't it be a direct object? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I think the answer is: no, not necessarily. If you think of the bracketing as:
which is also similar to:
you can see how "him" could be seen as a type of subject. This quickly gets into syntactic theory weeds, but a starting point is to look for more information on "small clauses". If you look at p. 252 of the PTB guidelines, there's a similar example with "consider" that shows how they decided to annotate these kind of clauses: https://www.ldc.upenn.edu/sites/www.ldc.upenn.edu/files/penn-etb-2-style-guidelines.pdf The OntoNotes data used in However these cases are tricky, both to annotate and to parse, so expect to see some mistakes/inconsistencies in the parser output in actual use. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the question and the answer: |
Beta Was this translation helpful? Give feedback.
-
I agree with you. But it is a wrong parsing or behind it you have a rule.
Just for information.
…On Wed, Nov 15, 2023, 18:42 Adriane Boyd ***@***.***> wrote:
Instead of trying to modify the parses, I would suggest reframing your
task so that you're trying to get the information you need out of the
current parses.
—
Reply to this email directly, view it on GitHub
<#13124 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWLRJSBSKGAFYNORRFXUD53YETPF7AVCNFSM6AAAAAA7IVKJ7KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKNZYGUZTK>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Great
thank you very much for your response, it is very helpful.
…On Wed, Nov 15, 2023, 19:15 Adriane Boyd ***@***.***> wrote:
The parse of "We help you create content" with "you" as the subject of
"create" is the intended parse based on the PTB/OntoNotes/ClearNLP
annotation schemes.
—
Reply to this email directly, view it on GitHub
<#13124 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWLRJSHYNHZL2WWESY7S25DYETTDRAVCNFSM6AAAAAA7IVKJ7KVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKNZYHA4TK>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
I think the answer is: no, not necessarily. If you think of the bracketing as:
which is also similar to:
you can see how "him" could be seen as a type of subject.
This quickly gets into syntactic theory weeds, but a starting point is to look for more information on "small clauses".
If you look at p. 252 of the PTB guidelines, there's a similar example with "consider" that shows how they decided to annotate these kind of clauses:
https://www.ldc.upenn.edu/sites/www.ldc.upenn.edu/files/penn-etb-2-style-guidelines.pdf
The OntoNotes data used in
en_core_web_*
is converted from a very similar annotation scheme, so I think this is the …