Example #1
0
  def corpusBuilders(self):
    """Provides a list of corpus builders.

    Provides a list of corpus builders. This list determines every corpus to be
    treated in the run.

    Returns:
      The C{map} of C{KBCorpusBuilder} of the run.
    """

    raise exception.KBConfigurationException(self, "Uncomplete configuration!")
Example #2
0
  def keyphraseExtractor(self, language):
    """Provides the component to use for keyphrase extraction in the run.

    Args:
      language: The C{string} name of the language to treat (see
        C{keybench.main.language_support.KBLanguage}).

    Returns:
      The C{KBKeyphraseExtractorI} of the run.
    """

    raise exception.KBConfigurationException(self, "Uncomplete configuration!")
Example #3
0
  def candidateClassifier(self, language):
    """Provides the component to use for candidate classification in the run.

    Args:
      language: The C{string} name of the language to treat (see
        C{keybench.main.language_support.KBLanguage}).

    Returns:
      The C{KBCandidateClassifierI} of the run.
    """

    raise exception.KBConfigurationException(self, "Uncomplete configuration!")
Example #4
0
    def stopList(self, language):
        """Provides a list of stop words.

    Args:
      language: The C{string} name of the language of the data to treat (see
        C{keybench.main.language_support.KBLanguage}).

    Returns:
      The C{list} of C{string} words to use as stop words.
    """

        raise exception.KBConfigurationException(
            self, "Uncomplete NLP resource configuration!")
Example #5
0
  def documentBuilder(self, corpus_name):
    """Provides the component that can build documents for a given corpus.

    Args:
      corpus_name: The C{string} name of the corpus of the documents that must
        be built.

    Returns:
      The C{KBDocumentBuilderI} that can parse file and build documents
      belonging to the given C{corpus_name}.
    """

    raise exception.KBConfigurationException(self, "Uncomplete configuration!")
Example #6
0
    def posTagger(self, language):
        """Provides the POS tagger to use for a given language.

    Args:
      language: The C{string} name of the language to treat (see
        C{keybench.main.language_support.KBLanguage}).

    Returns:
      The C{KBPOSTaggerI} to use for the given C{language}.
    """

        raise exception.KBConfigurationException(
            self, "Uncomplete NLP tool configuration!")
Example #7
0
  def keyphraseConsumers(self, language):
    """Provides a list of keyphrase consumers.

    Args:
      language: The C{string} name of the language to treat (see
        C{keybench.main.language_support.KBLanguage}).

    Provides a list of keyphrase consumers. It can be keyphrase extraction
    evaluators, keyphrase indexing systems, word cloud generators, etc.

    Returns:
      The C{list} of C{KBKeyphraseConsumerI} of the run.
    """

    raise exception.KBConfigurationException(self, "Uncomplete configuration!")