Package sentence :: Module pairwiseparallelsentenceset :: Class PairwiseParallelSentenceSet
[hide private]
[frames] | no frames]

Class PairwiseParallelSentenceSet

source code

Known Subclasses:

A set of pairwise parallel sentences, all originating from the same source sentence, in order to facilitate pairwise comparisons etc. Works as a wrapper over a dictionary, where pairs are indexed based on the system names of the 2 target translations.

Instance Methods [hide private]
pairwise_parallelsentences: list of sentence.pairwiseparallelsentence.PairwiseParallelSentence instances
get_parallelsentences(self)
Returns: a list of the parallel sentences contained in the structure
source code
list of tuples of two strings each
get_system_names(self)
Returns: all the system pairs that are mapped to pairwise sentences
source code
 
length(self) source code
Method Details [hide private]

get_parallelsentences(self)

source code 
Returns: pairwise_parallelsentences: list of sentence.pairwiseparallelsentence.PairwiseParallelSentence instances
a list of the parallel sentences contained in the structure

get_system_names(self)

source code 
Returns: list of tuples of two strings each
all the system pairs that are mapped to pairwise sentences