objectDirectionNhTransform extends NeighborhoodTransform with Product with Serializable
Creates a feature describing the order of two tokens in a two-token neighborhood.
Specifically, it will be 'L if the first token appears to the left of the second token in
the sentence. Otherwise, it will be 'R.
Note that the apply operator will throw an exception if the argument neighborhood does
not have exactly two tokens. It will also throw an exception if the two tokens are
the same (i.e. neither appears to the left of the other).
Creates a feature describing the order of two tokens in a two-token neighborhood.
Specifically, it will be 'L if the first token appears to the left of the second token in the sentence. Otherwise, it will be 'R.
Note that the apply operator will throw an exception if the argument neighborhood does not have exactly two tokens. It will also throw an exception if the two tokens are the same (i.e. neither appears to the left of the other).