AllWordFrequencyCounter class
Facilitates performing all_word_frequency on a stream of strings.
Constructors
- AllWordFrequencyCounter()
- AllWordFrequencyCounter.fromString(String str)
- Creates a counter and adds parameter string.
Properties
Methods
-
add(
String str, {bool end = false, bool ignorePunctuation = false}) → Map< String, int> - Add another string to be processed, returns the counts collection. end indicates final word to flush buffers and finalize count. ignorePunctuation facilitates checking words that include symbols.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited