class_docstr: Implements the *Biased TextRank* algorithm described by
  [[kazemi-etal-2020-biased]](https://derwen.ai/docs/ptr/biblio/#kazemi-etal-2020-biased),
  deployed as a `spaCy` pipeline component.
  
  This class does not get called directly; instantiate its factory
  instead.
      
class_docstr_tok: ["Implements","the","*","Biased","TextRank","*","algorithm","described","by","[","[","kazemi-etal-2020-biased","]","]","(","https",":","\/\/derwen.ai\/docs\/ptr\/biblio\/","#","kazemi-etal-2020-biased",")",",","deployed","as","a","`","spaCy","`","pipeline","component",".","This","class","does","not","get","called","directly",";","instantiate","its","factory","instead","."]
docstr: Assign the bias to use, where focus nodes get the preset bias and
  other nodes get the default (`1.0`) value.
  
      token:
  `spaCy` token to use for lookup in the *focus set*
  
      returns:
  bias to apply for the *node weight*
          
docstr_tok: ["Assign","the","bias","to","use",",","where","focus","nodes","get","the","preset","bias","and","other","nodes","get","the","default","(","`","1.0","`",")","value",".","token",":","`","spaCy","`","token","to","use","for","lookup","in","the","*","focus","set","*","returns",":","bias","to","apply","for","the","*","node","weight","*"]
code: def _get_node_bias(
      self,
      token: Token,
  ) -> float:
      """
      Assign the bias to use, where focus nodes get the preset bias and
      other nodes get the default (`1.0`) value.
  
          token:
      `spaCy` token to use for lookup in the *focus set*
  
          returns:
      bias to apply for the *node weight*
      """
      if token.text.lower() in self.focus_tokens:
          return self.node_bias
  
      if token.lemma_.lower() in self.focus_tokens:
          return self.node_bias
  
      return self.default_bias
  
file_path: pytextrank/pytextrank/biasedrank.py
imports: import typing
  from spacy.tokens import Doc, Token
  from .base import BaseTextRankFactory, BaseTextRank, Lemma, Phrase
label_desc: Use image node_id 1 for calling the BiasedTextRank obj's underlying member method code with example usage: obj._get_node_bias(token) and returns: self, self, self