| |
- create_from_delimited_file1(dfile)
- creates a thesaurus from a delimited file where the format is
<alternative>SEPARATOR<original>
...
- create_from_delimited_file2(dfile, case_sensitive)
- creates a thesaurus from a delimited file where the format is
<original>SEPARATOR<alt1>;<alt2>;...
...
- create_from_rsat_feature_names(dfile, key_transforms=None)
- Uses a feature_names.tab file from RSAT to create a Thesaurus,
represented as a dictionary.
key_transforms is an optional list of key modifiers that are applied in
sequence to the key before it is added to the dictionary
a key_transform is a function from string -> [string], so multiple
results can be returned from the transformer
e.g. the feature_names.tab file stores VNG names with a modification
suffix that can be removed
|