code: def __init__(self) -> None:
      lexicon = CanopyLexicon()
      self.index = CosineIndex(lexicon)
      self.lexicon = lexicon
  
file_path: dedupe/dedupe/canopy_index.py
imports: from __future__ import annotations
  import logging
  import math
  from typing import Iterable
  import numpy
  from BTrees.Length import Length
  from zope.index.text.cosineindex import CosineIndex
  from zope.index.text.lexicon import Lexicon
  from zope.index.text.setops import mass_weightedUnion
  from zope.index.text.textindex import TextIndex
label_desc: Use image node_id 1 to create a new CanopyIndex object from inherited base classes: TextIndex with example: obj = CanopyIndex()