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

Class RawPairwiseDataset

source code

       object --+            
                |            
  dataset.DataSet --+        
                    |        
      PairwiseDataset --+    
                        |    
RevertablePairwiseDataset --+
                            |
                           RawPairwiseDataset

A data set that contains pairwise comparisons organized by human judgment, i.e. there is a separate entry for each judgment, even if there are more than one judgment per sentence

Instance Methods [hide private]
 
__init__(self, plain_dataset=DataSet(), **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_cast(self, analytic_dataset=DataSet())
Typecast a DataSet that is in fact already analytic
source code

Inherited from RevertablePairwiseDataset: get_multiclass_set, get_single_set_with_hard_ranks, get_single_set_with_soft_ranks

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__, __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]
boolean include_references
Defines whether references need to be included in pairs, as sentences from system "_ref".
boolean replacement
Defines whether pairs are done in all combinations without replacement (replacement=False) or with replacement (replacement=True)

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]

__init__(self, plain_dataset=DataSet(), **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • plain_dataset (DataSet) - the simple dataset to be converted or wrapped to an analytic one. Casting of an already pairwise simple set is supported, see cast
  • replacement (boolean) - Defines whether pairs are done in all combinations without replacement (replacement=False) or with replacement (replacement=True)
  • include_references (boolean) - Defines whether references need to be included in pairs, as sentences from system "_ref". Do not enable this for test-sets, as reverting this is not yet supported
  • cast (boolean) - Cast (reload) an existing pairwise set of simple DataSet as RawPairwiseDataset. No pairwise conversions are done then
Overrides: object.__init__

Instance Variable Details [hide private]

include_references

Defines whether references need to be included in pairs, as sentences from system "_ref". Do not enable this for test-sets, as reverting this is not yet supported
Type:
boolean