de.dfleischhacker.uni.thesis.semantic.nullsemantic
Class NullSemantic

java.lang.Object
  extended by de.dfleischhacker.uni.thesis.semantic.nullsemantic.NullSemantic
All Implemented Interfaces:
SemanticModule

public class NullSemantic
extends java.lang.Object
implements SemanticModule

Implements the null semantic. This semantic is used to do no reasoning or altering of the alignment at all but return every alignment passed into the semantic as is. Thus, it is possible to compute the classical precision and recall measures with our architecture designed for semantics. As an implication of this design this method does not pose any restrictions on the correspondences contained in the alignments.


Constructor Summary
NullSemantic()
          Initializes the NullSemantic object.
 
Method Summary
 ClosureResult getClosure(Alignment align)
          Returns the given alignment (packed in a ClosureResult) as is which enables us to compute the classical precision and recall measures.
 void setDeleteABox(boolean delete)
          Does nothing for the null semantic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSemantic

public NullSemantic()
Initializes the NullSemantic object. Different from the other classes there are no arguments required

Method Detail

getClosure

public ClosureResult getClosure(Alignment align)
Returns the given alignment (packed in a ClosureResult) as is which enables us to compute the classical precision and recall measures.

Specified by:
getClosure in interface SemanticModule
Parameters:
align - alignment to return
Returns:
unchanged alignment contained in ClosureResult

setDeleteABox

public void setDeleteABox(boolean delete)
Does nothing for the null semantic

Specified by:
setDeleteABox in interface SemanticModule
Parameters:
delete - unused