WordFrequencies

public class WordFrequencies

Returns word frequency based on a language. This component builds upon the great work of wordfreq.py by LuminosoInsight.

Functions

Link copied to clipboard
public final Map<String, Float> getAllWordFrequenciesOrNull(LanguageSupport language, WordFrequencySize size)
Link copied to clipboard
public final Map<String, Float> getAllZipfFrequenciesOrNull(LanguageSupport language, WordFrequencySize size)
Link copied to clipboard
public final Float wordFrequency(    String word,     LanguageSupport language,     Float minimum,     WordFrequencySize size)
Link copied to clipboard
public final Float wordFrequencyOrNull(    String word,     LanguageSupport language,     WordFrequencySize size)
Link copied to clipboard
public final Float zipfFrequency(    String word,     LanguageSupport language,     Float minimum,     WordFrequencySize size)
Link copied to clipboard
public final Float zipfFrequencyOrNull(    String word,     LanguageSupport language,     WordFrequencySize size)

Properties

Link copied to clipboard
public final static WordFrequencies INSTANCE