class_docstr: A Comparison represents a comparative sentence and its constituents.
class_docstr_tok: ["A","Comparison","represents","a","comparative","sentence","and","its","constituents","."]
docstr: :param text: a string (optionally tokenized) containing a comparison.
  :param comp_type: an integer defining the type of comparison expressed.
      Values can be: 1 (Non-equal gradable), 2 (Equative), 3 (Superlative),
      4 (Non-gradable).
  :param entity_1: the first entity considered in the comparison relation.
  :param entity_2: the second entity considered in the comparison relation.
  :param feature: the feature considered in the comparison relation.
  :param keyword: the word or phrase which is used for that comparative relation.
docstr_tok: [":","param","text",":","a","string","(","optionally","tokenized",")","containing","a","comparison",".",":","param","comp_type",":","an","integer","defining","the","type","of","comparison","expressed",".","Values","can","be",":","1","(","Non-equal","gradable",")",",","2","(","Equative",")",",","3","(","Superlative",")",",","4","(","Non-gradable",")",".",":","param","entity_1",":","the","first","entity","considered","in","the","comparison","relation",".",":","param","entity_2",":","the","second","entity","considered","in","the","comparison","relation",".",":","param","feature",":","the","feature","considered","in","the","comparison","relation",".",":","param","keyword",":","the","word","or","phrase","which","is","used","for","that","comparative","relation","."]
code: def __init__(
      self,
      text=None,
      comp_type=None,
      entity_1=None,
      entity_2=None,
      feature=None,
      keyword=None,
  ):
      """
      :param text: a string (optionally tokenized) containing a comparison.
      :param comp_type: an integer defining the type of comparison expressed.
          Values can be: 1 (Non-equal gradable), 2 (Equative), 3 (Superlative),
          4 (Non-gradable).
      :param entity_1: the first entity considered in the comparison relation.
      :param entity_2: the second entity considered in the comparison relation.
      :param feature: the feature considered in the comparison relation.
      :param keyword: the word or phrase which is used for that comparative relation.
      """
      self.text = text
      self.comp_type = comp_type
      self.entity_1 = entity_1
      self.entity_2 = entity_2
      self.feature = feature
      self.keyword = keyword
  
file_path: nltk/nltk/corpus/reader/comparative_sents.py
imports: import re
  from nltk.corpus.reader.api import *
  from nltk.tokenize import *
label_desc: Use image node_id 1 to create a new Comparison object  with example: obj = Comparison(text, comp_type, entity_1, entity_2, feature, keyword)