Class BagOfWordsFeatureGenerator

    • Constructor Detail

      • BagOfWordsFeatureGenerator

        public BagOfWordsFeatureGenerator()
    • Method Detail

      • extractFeatures

        public Collection<String> extractFeatures​(String[] text,
                                                  Map<String,​Object> extraInformation)
        Description copied from interface: FeatureGenerator
        Extract features from given text fragments
        Specified by:
        extractFeatures in interface FeatureGenerator
        Parameters:
        text - the text fragments to extract features from
        extraInformation - optional extra information to be used by the feature generator
        Returns:
        a collection of features