Skip to content
Discussion options

You must be logged in to vote

The compound relation is a dependency relation and is set by the (dependency) parser, you can access it with token.dep_.

There's not a special function for getting words marked with the compound relation, but merge_noun_chunks should merge compound words (in addition to other chunks).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AnnemarieWittig
Comment options

@polm
Comment options

@AnnemarieWittig
Comment options

Answer selected by AnnemarieWittig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / parser Feature: Dependency Parser feat / tokenizer Feature: Tokenizer
2 participants