pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::WordScore Struct Reference

One word and its score. More...

#include <word_scores.hpp>

Collaboration diagram for pulsatrix::WordScore:

Public Attributes

Offset span
 
std::string text
 
float score = 0.0f
 
std::vector< size_t > tokens
 Indices of the tokens that overlap the word, in order. Empty when none does (a character the vocabulary dropped), and then the score is 0.
 

Detailed Description

One word and its score.

Member Data Documentation

◆ score

float pulsatrix::WordScore::score = 0.0f

◆ span

Offset pulsatrix::WordScore::span

◆ text

std::string pulsatrix::WordScore::text

◆ tokens

std::vector<size_t> pulsatrix::WordScore::tokens

Indices of the tokens that overlap the word, in order. Empty when none does (a character the vocabulary dropped), and then the score is 0.


The documentation for this struct was generated from the following file: