class_docstr: interface to Lexrank-based text summarization
docstr: ```
  interface to Lexrank-based text summarization using sumy library
  
  Args:
    language(str): default is "english"
  ```
docstr_tok: ["``","`","interface","to","Lexrank-based","text","summarization","using","sumy","library","Args",":","language","(","str",")",":","default","is","``","english","''","``","`"]
code: def __init__(self, language="english"):
      """
      ```
      interface to Lexrank-based text summarization using sumy library
  
      Args:
        language(str): default is "english"
      ```
      """
  
      try:
          from sumy.nlp.stemmers import Stemmer
          from sumy.summarizers.lex_rank import (
              LexRankSummarizer as Summarizer,
          )
          from sumy.utils import get_stop_words
      except ImportError:
          raise ImportError(
              "Please install the sumy package: pip install sumy"
          )
  
      self.language = language
      stemmer = Stemmer(self.language)
      self.summarizer = Summarizer(stemmer)
      self.summarizer.stop_words = get_stop_words(self.language)
  
file_path: ktrain/ktrain/text/summarization/core.py
imports: from ...torch_base import TorchBase
label_desc: Use image node_id 1 to create a new LexRankSummarizer object  with example: obj = LexRankSummarizer(language)