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

Class FilteredPairwiseDataset

source code

       object --+                
                |                
  dataset.DataSet --+            
                    |            
      PairwiseDataset --+        
                        |        
RevertablePairwiseDataset --+    
                            |    
       CompactPairwiseDataset --+
                                |
                               FilteredPairwiseDataset

Instance Methods [hide private]
 
__init__(self, analytic_pairwise_dataset=AnalyticPairwiseDataset(), threshold=1.0)
x.__init__(...) initializes x; see help(type(x)) for signature
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]

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, analytic_pairwise_dataset=AnalyticPairwiseDataset(), threshold=1.0)
(Constructor)

source code 

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

Parameters:
  • parallelsentence_list - the parallelsentences to be wrapped in the dataset
  • attributes_list - if the names of the attributes for the parallelsentences are known, they can be given here, in order to avoid extra processing. Otherwise they will be computed when needed. @type [str, ...]
  • annotations - Not implemented @type list
Overrides: object.__init__
(inherited documentation)