java.lang.Object
org.nasdanika.ai.BagOfWordsGenerator
- All Implemented Interfaces:
EmbeddingGenerator<String,,Map<String, Integer>> TextEmbeddingGenerator<Map<String,,Integer>> Composable<EmbeddingGenerator<String,Map<String, Integer>>>
public class BagOfWordsGenerator
extends Object
implements TextEmbeddingGenerator<Map<String,Integer>>
Splits input by whitespace, lowercases and then computes frequency of each word
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.nasdanika.ai.EmbeddingGenerator
EmbeddingGenerator.Requirement -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nasdanika.ai.EmbeddingGenerator
adapt, compose, compose, composeAsync, generate, generate, generateAsync, then
-
Constructor Details
-
BagOfWordsGenerator
public BagOfWordsGenerator()
-
-
Method Details
-
generateAsync
- Specified by:
generateAsyncin interfaceEmbeddingGenerator<String,Map<String, Integer>>
-