|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--notio.TranslationContext
A class for holding information related to translation so it can be given to different parsers and generators to ensure consistent representations.
Constructor Summary | |
TranslationContext()
Constructs a new translation context. |
|
TranslationContext(TranslationContext originalContext)
Constructs a new translation context that is a copy of the specified original. |
Method Summary | |
void |
clearDefiningLabelToCoreferenceSetMapping()
Clears all existing mappings between coreference labels and coreference sets. |
void |
clearForeignMarkerIDToNativeMarkerMapping()
Clears all existing mappings between foreign marker ID's and native markers. |
CoreferenceSet |
getCoreferenceSetByDefiningLabel(java.lang.String definingLabel)
Returns the coreference set associated with the specified defining label in this translation context. |
java.lang.String |
getDefiningLabelByCoreferenceSet(CoreferenceSet corefSet)
Returns the defining label associated with the specified coreference set in this translation context. |
java.lang.String |
getForeignMarkerIDByNativeMarker(Marker marker)
Returns the foreign marker ID associated with the specified native marker in this translation context. |
java.lang.String |
getLastDefiningLabel()
Returns the last defining label generated by this context or null if no labels have generated. |
Marker |
getNativeMarkerByForeignMarkerID(java.lang.String foreignID)
Returns the native marker associated with the specified foreign marker ID in this translation context. |
java.lang.String |
getNextAvailableDefiningLabel()
Returns a new defining label that is not already present in the defining label/coreference set mapping. |
void |
mapDefiningLabelToCoreferenceSet(java.lang.String definingLabel,
CoreferenceSet corefSet)
Creates a two-way mapping between a defining label and a coreference set instance. |
void |
mapForeignMarkerIDToNativeMarker(java.lang.String foreignID,
Marker marker)
Creates a two-way mapping between a foreign marker ID and a native marker instance. |
void |
resetAvailableDefiningLabel()
Resets the generator for defining labels so that it starts again. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TranslationContext()
public TranslationContext(TranslationContext originalContext)
originalContext
- the translation context to be copied.Method Detail |
public void mapDefiningLabelToCoreferenceSet(java.lang.String definingLabel, CoreferenceSet corefSet)
definingLabel
- the defining label being mapped.corefSet
- the coreference set being mapped.public CoreferenceSet getCoreferenceSetByDefiningLabel(java.lang.String definingLabel)
definingLabel
- the defining label used for lookup.public java.lang.String getDefiningLabelByCoreferenceSet(CoreferenceSet corefSet)
corefSet
- the coreference set used for lookup.public void clearDefiningLabelToCoreferenceSetMapping()
public void mapForeignMarkerIDToNativeMarker(java.lang.String foreignID, Marker marker)
foreignID
- the foreign marker ID being mapped.marker
- the native marker being mapped.public Marker getNativeMarkerByForeignMarkerID(java.lang.String foreignID)
foreignID
- the foreign marker ID used for lookup.public java.lang.String getForeignMarkerIDByNativeMarker(Marker marker)
marker
- the native marker used for lookup.public void clearForeignMarkerIDToNativeMarkerMapping()
public java.lang.String getNextAvailableDefiningLabel()
public void resetAvailableDefiningLabel()
public java.lang.String getLastDefiningLabel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |