pythainlp.summarize

The summarize is thai text summarize.

Modules

pythainlp.summarize.summarize(text: str, n: int, engine: str = 'frequency', tokenizer: str = 'newmm')List[str][source]

Thai text summarization

Parameters
  • text (str) – text to be summarized

  • n (int) – number of sentences to be included in the summary

  • engine (str) – text summarization engine

  • tokenizer (str) – word tokenizer

Return List[str] summary

list of selected sentences