|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--edu.columbia.surge.hashImpl.FDH | +--edu.columbia.surge.hashImpl.NPH | +--edu.columbia.surge.hashImpl.PPH
The PP (prepositional phrase) category for a FD. Methods are provided to set the preposition and the np (noun phrase) which is essential in creating PPs. Factory methods are also provided for easier constructing purpose. User can either use the PPFactoryH class or directly use the constructor of this class to create instances of PPH.
PP
,
PPFactoryH
, Serialized FormConstructor Summary | |
PPH()
Constructor which creates a default instance of PPH. |
|
PPH(java.lang.String prep,
FD np)
Constructor which returns a PPH object with the input preposition and the body of the NP which resides in the prepositional phrase. |
Method Summary | |
void |
setNP(FD np)
A method to set the NP within a PP |
void |
setPrep(java.lang.String preposition)
A method to set the preposition of a prepositional phrase |
Methods inherited from class edu.columbia.surge.hashImpl.NPH |
setHead,
setLex |
Methods inherited from class edu.columbia.surge.hashImpl.FDH |
checkPath,
checkPath,
computePathDifference,
getPath,
getPath,
putPath,
putPath,
putPathOverride,
putPathOverride,
stackToPath,
stringToArray,
toString,
toString,
toXML |
Methods inherited from class java.util.HashMap |
clear,
clone,
containsKey,
containsValue,
entrySet,
get,
isEmpty,
keySet,
put,
putAll,
remove,
size,
values |
Methods inherited from class java.util.AbstractMap |
equals,
hashCode |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public PPH()
public PPH(java.lang.String prep, FD np) throws InvalidConstructorException, InvalidPathException
prep
- the preposition of the PPnp
- the NP within the PPMethod Detail |
public void setPrep(java.lang.String preposition) throws InvalidPathException
preposition
- the user-specified preposition entrypublic void setNP(FD np)
NP
- the user-specified NP body
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |