pysummarization.nlpbase package

Submodules

pysummarization.nlpbase.auto_abstractor module

class pysummarization.nlpbase.auto_abstractor.AutoAbstractor[source]

Bases: pysummarization.nlp_base.NlpBase

The object for automatic summarization.

cluster_threshold

getter

get_cluster_threshold()[source]

getter

get_target_n()[source]

getter

get_top_sentences()[source]

getter

set_cluster_threshold(value)[source]

setter

set_target_n(value)[source]

setter

set_top_sentences(value)[source]

setter

summarize(document, Abstractor, similarity_filter=None)[source]

Execute summarization.

Parameters:
  • document – The target document.
  • Abstractor – The object of AbstractableDoc.
  • The object of SimilarityFilter. (similarity_filter) –
Returns:

dict{

“summarize_result”: The list of summarized sentences., “scoring_data”: The list of scores.

}

target_n

getter

top_sentences

getter

Module contents