docstr: Extract keywords from sentence using TextRank algorithm.
  Args:
      topK(int): return how many top keywords. `None` for all possible words.
      withWeight(bool): if True, return a list of (word, weight);
                    if False, return a list of words.
      allowPOS(tuple): the allowed POS list eg. ['ns', 'n', 'vn', 'v','nr'].
                  if the POS of w is not in this list,it will be filtered.
      withFlag(bool): only work with allowPOS is not empty.
                  if True, return a list of pair(word, weight) like posseg.cut
                  if False, return a list of words
  Returns:
      result(list): The key words.
docstr_tok: ["Extract","keywords","from","sentence","using","TextRank","algorithm",".","Args",":","topK","(","int",")",":","return","how","many","top","keywords",".","`","None","`","for","all","possible","words",".","withWeight","(","bool",")",":","if","True",",","return","a","list","of","(","word",",","weight",")",";","if","False",",","return","a","list","of","words",".","allowPOS","(","tuple",")",":","the","allowed","POS","list","eg",".","[","'ns","'",",","'n","'",",","'vn","'",",","'","v","'",",","'nr","'","]",".","if","the","POS","of","w","is","not","in","this","list",",","it","will","be","filtered",".","withFlag","(","bool",")",":","only","work","with","allowPOS","is","not","empty",".","if","True",",","return","a","list","of","pair","(","word",",","weight",")","like","posseg.cut","if","False",",","return","a","list","of","words","Returns",":","result","(","list",")",":","The","key","words","."]
code: def textrank(
      self,
      sentence,
      topK=20,
      withWeight=False,
      allowPOS=("ns", "n", "vn", "v"),
      withFlag=False,
  ):
      """
      Extract keywords from sentence using TextRank algorithm.
      Args:
          topK(int): return how many top keywords. `None` for all possible words.
          withWeight(bool): if True, return a list of (word, weight);
                        if False, return a list of words.
          allowPOS(tuple): the allowed POS list eg. ['ns', 'n', 'vn', 'v','nr'].
                      if the POS of w is not in this list,it will be filtered.
          withFlag(bool): only work with allowPOS is not empty.
                      if True, return a list of pair(word, weight) like posseg.cut
                      if False, return a list of words
      Returns:
          result(list): The key words.
      """
      self.check_dependency()
      import jieba
  
      jieba.setLogLevel(logging.ERROR)
      res = jieba.analyse.textrank(
          sentence,
          topK=topK,
          withWeight=withWeight,
          allowPOS=allowPOS,
          withFlag=withFlag,
      )
      return res
  
file_path: PaddleHub/modules/text/lexical_analysis/jieba_paddle/module.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import os
  import paddlehub
  from paddlehub.common.logger import logger
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import serving
label_desc: Use image node_id 8 for calling the JiebaPaddle obj's underlying member method code with example usage: obj.textrank(sentence, topK, withWeight, allowPOS, withFlag) and returns: res