jeveryword
A dependency-free text extractor that numbers the words of a message, offers those numbers as Jev choices, and converts the picked ids back into exact substrings with character offsets.
A dependency-free text extractor that numbers the words of a message, offers those numbers as Jev choices, and converts the picked ids back into exact substrings with character offsets.
The text is tokenized and each token becomes a Choice option keyed by its id, with range options for a boundary inside a longer list plus missing and ambiguous. One request carries the shared rules in the state and one question per field asking for the first token of that field's value, and a speculative fan-out asks for the last token alongside it; a doubtful end is asked again once the start is known. Longer texts first get one cheap request that points each field at the sentence containing it, and the search then runs inside that sentence. Answers are validated against the offered ids and the chosen range is copied out of the source, so every returned value is an exact substring with character offsets.
Which token is the first token of the value for the requested field, or is the value missing or ambiguous?
The shared rules and the numbered tokens of the source text, one per line as id and token. For long texts only the relevant sentences are listed after the locate request. Each field asks for the first and last token of its value.
Which token is the last token of that same value, which may be the same token?
The shared rules and the numbered tokens of the source text, one per line as id and token. For long texts only the relevant sentences are listed after the locate request. Each field asks for the first and last token of its value.
The input is tokenized into words and sentences, and every token gets an id that can be offered as a choice option.
Above the fan-out limit, one cheap request points each field at the sentence that contains its value.
One request asks for the first and, speculatively, the last token of every field, with the shared rules sent once in the state.
Answers are validated against the offered ids, a doubtful end is asked again, and the chosen range is copied out of the source text.
Each result is a substring with its character offsets and a probability, and the same numbering supports field extraction, PII labels and quotes.
A model that cannot generate text still returns names, addresses and quotes, because the words become selectable ids and the answer is a number that maps back to an exact span. Putting the boundary rules in the shared state once instead of repeating them in every question keeps a ten-field extraction to one request of a few hundred milliseconds.