Expand description
Helpers for the visualizer: a simple tokenizer, metrics and issue detection.
Structs§
- Analysis
Metrics - Calculate various metrics from token analysis
Functions§
- create_
mock_ analysis Deprecated - Made-up confidence scores (a hash of each word), for exercising the renderers without model data. The numbers mean nothing.
- detect_
issues - Detect potential issues in token analysis
- simple_
tokenize - Simple tokenizer for demo purposes - splits on whitespace and punctuation