public class RelationBasedBasisMapping extends AbstractBasisMapping<DependencyPath,String> implements DependencyPathBasisMapping
BasisMapping
implementation where each word and relation
combination corresponds to a unique dimension. For example "bowl" occuring
with the "SBJ
" relation will be treated as a seperate dimension than
"bowl" with the "OBJ
" relation.Constructor and Description |
---|
RelationBasedBasisMapping() |
Modifier and Type | Method and Description |
---|---|
int |
getDimension(DependencyPath path)
Returns the dimension number corresponding to the term at the end of the
provided path.
|
getDimensionDescription, getDimensionInternal, getMapping, isReadOnly, keySet, numDimensions, setReadOnly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDimensionDescription, isReadOnly, keySet, numDimensions, setReadOnly
public int getDimension(DependencyPath path)
getDimension
in interface BasisMapping<DependencyPath,String>
path
- a path whose end represents a semantic connectionCopyright © 2012. All Rights Reserved.