public class WordBasedBasisMapping extends AbstractBasisMapping<DependencyPath,String> implements DependencyPathBasisMapping
BasisMapping
implementation where each word corresponds to a unique
dimension regardless of how it is grammatically related. For example "clock"
occuring with the "SBJ
" relation will have the same dimension as
"clock" occurring with the "OBJ
" relation.Constructor and Description |
---|
WordBasedBasisMapping() |
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.