__author__ = 's7a'

# All imports
from extras import KuceraFrancis
from resource import Resource
from os import path


# The Kucera Francis enrichment class
class KuceraFrancisEnricher:

    # Constructor for the Kucera Francis Enricher
    def __init__(self):
        self.kf = KuceraFrancis(path.join('data', 'kucera_francis.csv'))

    # Enrich the word
    def enrich_word(self, word):
        if self.kf.frequency(word) == 0:
            return Resource.link(word)
        return word
__author__ = 's7a'

# All imports
from extras import StemmedKuceraFrancis
from resource import Resource
from os import path


# The Kucera Francis enrichment class
class KuceraFrancisEnricher:

    # Constructor for the Kucera Francis Enricher
    def __init__(self):
        self.kf = StemmedKuceraFrancis(path.join('data', 'kucera_francis.csv'))

    # Enrich the word
    def enrich_word(self, word):
        if self.kf.frequency(word) == 0:
            return Resource.link(word)
        return word
Use stemmed Kucera Francis for Enrichment
Use stemmed Kucera Francis for Enrichment

  __author__ = 's7a'
  
  # All imports
- from extras import KuceraFrancis
+ from extras import StemmedKuceraFrancis
  from resource import Resource
  from os import path
  
  
  # The Kucera Francis enrichment class
  class KuceraFrancisEnricher:
  
      # Constructor for the Kucera Francis Enricher
      def __init__(self):
-         self.kf = KuceraFrancis(path.join('data', 'kucera_francis.csv'))
+         self.kf = StemmedKuceraFrancis(path.join('data', 'kucera_francis.csv'))
  
      # Enrich the word
      def enrich_word(self, word):
          if self.kf.frequency(word) == 0:
              return Resource.link(word)
          return word
Use stemmed Kucera Francis for Enrichment
## Code Before:
__author__ = 's7a'

# All imports
from extras import KuceraFrancis
from resource import Resource
from os import path


# The Kucera Francis enrichment class
class KuceraFrancisEnricher:

    # Constructor for the Kucera Francis Enricher
    def __init__(self):
        self.kf = KuceraFrancis(path.join('data', 'kucera_francis.csv'))

    # Enrich the word
    def enrich_word(self, word):
        if self.kf.frequency(word) == 0:
            return Resource.link(word)
        return word
## Instruction:
Use stemmed Kucera Francis for Enrichment
## Code After:
__author__ = 's7a'

# All imports
from extras import StemmedKuceraFrancis
from resource import Resource
from os import path


# The Kucera Francis enrichment class
class KuceraFrancisEnricher:

    # Constructor for the Kucera Francis Enricher
    def __init__(self):
        self.kf = StemmedKuceraFrancis(path.join('data', 'kucera_francis.csv'))

    # Enrich the word
    def enrich_word(self, word):
        if self.kf.frequency(word) == 0:
            return Resource.link(word)
        return word