Package sentence :: Module coupleddataset :: Class CoupledDataSetDisk
[hide private]
[frames] | no frames]

Class CoupledDataSetDisk

source code

     object --+        
              |        
dataset.DataSet --+    
                  |    
     CoupledDataSet --+
                      |
                     CoupledDataSetDisk

Instance Methods [hide private]
 
__init__(self, existing_item)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
write(self, filename, filter_att=False, diff=0, compact=False) source code

Inherited from CoupledDataSet: get_nested_attribute_names, get_single_set, get_single_set_with_hard_ranks, get_single_set_with_soft_ranks

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_parallelsentences, 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, remove_ties, 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 CoupledDataSet: parallelsentences

Inherited from dataset.DataSet: attribute_names, attribute_names_found

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, existing_item)
(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
  • existing_item (DataSet or [CoupledParallelSentence, ...])
Overrides: object.__init__