Skip to content

Same token from 2 subtrees of same sentence have same type and same .text, but are not the same object #11752

@pipkin40

Description

@pipkin40

github_query_00055.pdf
The behavior illustrated in the supplied code seems anomalous. It is problematic for me because it prevents the deletion of sublists using the del operator to remove a sublist in a larger list. Specifically, the sublist is found not to be identical to the corresponding sequence in the larger list. The sublist deletion functions have been checked with model lists of integers and characters and work fine.
My ultimate goal here is to extract the matrix clause of the sentence. Is there an established way of doing this?

Much appreciation!
pipkin40

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions