StatsCountOccurrences class

Count occurrences of patterns in the dataset. Reads patterns from csv in cache

Inheritance

Constructors

StatsCountOccurrences(Map config, {required PackedDataCache? cache})
Create a new instance

Properties

append bool
If append is false the file will be overwritten.
final
cache PackedDataCache?
Cache
finalinherited
caseSensitive bool
Whether the pattern should be case sensitive. This is ignored if regex is true.
final
config Map
Provided configuration, usually passed from the DatasetDescriptor
finalinherited
countCol int
A new column inserted with the counts
final
counts LinkedHashMap<Pattern, int>
Pattern counts
final
description String
A description of the transformer.
no setterinherited
file File
Output file path
final
hashCode int
The hash code for this object.
no setterinherited
min int
The minimum number of occurrences required to be included in the output
final
patternCol int
The column of the pattern in the packed csv
final
progress ProgressBloc?
Progress
finalinherited
regex bool
Whether the patterns should be interpreted as regex
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stepDescription String
A user supplied description of the transformation step as it relates to the data being processed.
finalinherited

Methods

bind(Stream<List<Conversation>> stream) Stream<List<Conversation>>
Transforms the provided stream.
override
cast<RS, RT>() StreamTransformer<RS, RT>
Provides a StreamTransformer<RS, RT> view of this stream transformer.
inherited
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