Package sentence :: Module pairwisedataset :: Class RevertablePairwiseDataset
[hide private]
[frames] | no frames]

Class RevertablePairwiseDataset

source code

     object --+        
              |        
dataset.DataSet --+    
                  |    
    PairwiseDataset --+
                      |
                     RevertablePairwiseDataset
Known Subclasses:

Abstract class for pairwise datasets whose internal structure allows them to be reconstructed back to multi-class sets It pre-supposes that there are unique pairs per entry (indexable either by judgment_id or sentence_id)

Instance Methods [hide private]
 
get_multiclass_set(self) source code
 
get_single_set_with_hard_ranks(self, critical_attribute=None, new_rank_name=None, **kwargs) source code
DataSet
get_single_set_with_soft_ranks(self, attribute1='', attribute2='', critical_attribute='rank_soft_predicted', new_rank_name=None, **kwargs)
Reconstructs the original data set, with only one sentence per entry.
source code

Inherited from PairwiseDataset: get_all_parallelsentence_sets, get_pairwise_parallelsentence_set, get_pairwise_parallelsentence_sets, get_parallelsentences, get_sentence_ids, remove_ties

Inherited from dataset.DataSet: __eq__, __init__, __iter__, add_attribute_vector, append_dataset, clone, compare, confirm_attributes, ensure_judgment_ids, get_all_attribute_names, get_annotations, get_attribute_names, get_discrete_attribute_values, get_head_sentences, get_multisource_strings, get_nested_attribute_names, get_parallelsentences_per_sentence_id, get_parallelsentences_with_judgment_ids, get_singlesource_strings, get_size, get_tail_sentences, get_target_strings, get_translations_count_vector, import_target_attributes_onsystem, merge_dataset, merge_dataset_symmetrical, merge_references_symmetrical, modify_singlesource_strings, modify_target_strings, select_attribute_names, split, write_singlesource_strings_file

Inherited from dataset.DataSet (private): _retrieve_attribute_names

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from PairwiseDataset: pairwise_parallelsentence_sets

Inherited from dataset.DataSet: attribute_names, attribute_names_found, parallelsentences

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_single_set_with_soft_ranks(self, attribute1='', attribute2='', critical_attribute='rank_soft_predicted', new_rank_name=None, **kwargs)

source code 

Reconstructs the original data set, with only one sentence per entry.

Returns: DataSet
Simple dataset that contains the simplified parallel sentences