Back to results
US 2022/0284190 A1Published application
Tokenizing alphanumeric text through use of finite state machines
AssigneeMicrosoft Technology Licensing, LLC
InventorsSiarhei ALONICHAU, Junaid AHMED
Life of this patent
Estimating the term…
Abstract
Described herein are technologies related to tokenizing alphanumeric text through use of a tokenization algorithm that is at least partially implemented as a finite state machine. The tokenization algorithm is configured to output numeric identifiers that represent tokens or sub-tokens in the alphanumeric text.
Claims20
A computing system comprising:
- a processor;
- and
- memory storing instructions that, when executed by the processor, cause the processor to perform acts comprising:
- receiving a request to tokenize alphanumeric text that includes a word;
- and
- tokenizing the alphanumeric text such that a sequence of numeric identifiers that represents the alphanumeric text is output, wherein tokenizing the alphanumeric text comprises:
- providing the alphanumeric text to a computer-implemented finite state machine, where the finite state machine includes a final state;
- and
- outputting at least one numeric identifier as a representation of the word based upon a value assigned to the final state of the computer-implemented finite state machine,
- wherein the at least one numeric identifier is identified from a predefined set of numeric identifiers, and further wherein a class is assigned to the alphanumeric text by a computer-implemented text classifier based upon the output sequence of numeric identifiers.
7 more elements
A method performed by a computing system that includes at least one processor, the method comprising:
- receiving:
- alphanumeric text;
- and
- a request to tokenize the alphanumeric text;
- and
- based upon the alphanumeric text and further based upon the request, tokenizing the alphanumeric text such that a sequence of numeric identifiers is output, wherein the sequence of numeric identifiers represents the alphanumeric text, wherein tokenizing the alphanumeric text comprises:
- providing the alphanumeric text to a computer-implemented finite state machine, wherein the finite state machine comprises several states and transitions between states, and further wherein a state in the several states is labeled as an output state;
- and
- traversing several transitions to reach the output state, a numeric identifier is output based upon a value assigned to the output state,
- wherein the alphanumeric text is assigned to a class by a text classifier based upon the sequence of numeric identifiers.
7 more elements
A computer-readable storage medium comprising instructions that, when executed by a processor, cause the processor to perform acts comprising:
- receiving a request to tokenize alphanumeric text using a tokenization algorithm that belongs to a Word Piece class of tokenization algorithms;
- and
- based upon the request, tokenizing the alphanumeric text using the tokenization algorithm to output a sequence of numeric identifiers, wherein the tokenization algorithm is at least partially implemented as a deterministic finite state machine, and further wherein tokenizing the alphanumeric text comprises:
- providing the alphanumeric text as input to the deterministic finite state machine;
- and
- outputting a numeric identifier that is representative of a token in the alphanumeric text based upon a value assigned to a final state of the deterministic finite state machine,
- wherein the alphanumeric text is assigned a class by a computer-implemented text classifier based upon the sequence of numeric identifiers.
4 more elements
Dependencies are inferred from the claim text.