Given a Seq[PostaggedTokens] will attempt to extract the tokens representing the headword tokens.
Given a Seq[PostaggedTokens] will attempt to extract the tokens representing the headword tokens.
Given a Seq[PostaggedTokens] will attempt to extract the tokens representing the headword tokens of the relation.
Given a Seq[PostaggedTokens] will attempt to extract the tokens representing the headword tokens of the relation.
Extracts "headwords" from Postagged Token Sequences, e.g. Head(good coffee)=coffee Head(Barack Obama)=Barack Obama Head(group of animals)=group Head(10 policemen)=policemen See argumentHead()
It will do something similar for relation (verb) sequences. See relationHead()
Requires wordnet to exist somewhere on the local filesystem.