def __init__()

in sourcecode/scoring/topic_model.py [0:0]


  def __init__(self, unassignedThreshold=0.85):
    """Initialize a list of seed terms for each topic."""
    self._seedTerms = {
      Topics.UkraineConflict: {
        "ukrain",  # intentionally shortened for expanded matching
        "russia",
        "kiev",
        "kyiv",
        "moscow",
        "zelensky",
        "putin",
      },
      Topics.GazaConflict: {
        "israel",
        "palestin",  # intentionally shortened for expanded matching
        "gaza",
        "jerusalem",
      },
      Topics.MessiRonaldo: {
        "messi\s",  # intentional whitespace to prevent prefix matches
        "ronaldo",
      },
    }
    self._unassignedThreshold = unassignedThreshold
    self._compiled_regex = self._compile_regex()