autoBOTLib.misc package

Submodules

autoBOTLib.misc.misc_helpers module

autoBOTLib.misc.misc_helpers.store_autobot_model(model_class, path, verbose=True)

A simple model storage method. It pickles a trained autoBOT object.

Parameters
  • model_class – The autoBOT object

  • path – The path to the output file

autoBOTLib.misc.misc_helpers.load_autobot_model(path, verbose=True)

Load a pickled autoBOT model.

Parameters
  • path – The path to the output file

  • model_skeleton – The model object to be equipped with the stored model space

Return unpickled_model

Returns a trained, unpickled model useful for further learning.

autoBOTLib.misc.misc_keyword_detection module

RaKUn is an algorithm for graph-absed keyword extraction.

class autoBOTLib.misc.misc_keyword_detection.RakunDetector(hyperparameters, verbose=True)

Bases: object

__init__(hyperparameters, verbose=True)

Initialize self. See help(type(self)) for accurate signature.

corpus_graph(language_file, limit_range=3000000, verbose=False, lemmatizer=None, stopwords=None, min_char=4, stemmer=None, input_type='file')
generate_hypervertices(G)

This node generates hypervertices.

hypervertex_prunning(graph, distance_threshold, pair_diff_max=2, distance_method='editdistance')
find_keywords(document, input_type='file', validate=False)
calculate_edit_distance(key1, key2)
calculate_embedding_distance(key1, key2)

Module contents