# US 2021/0286947 A1 · Text processing method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286947 A1
- Document ID: US20210286947A1
- Status: Published application
- Kind: A1
- Application number: 16/818,690
- Filed: 2020-03-13
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: Canon Medical Systems Corporation
- Applicants: Canon Medical Systems Corporation
- Inventors: Maciej PAJAK
- Web page: https://patentgrep.com/patent/US20210286947A1

## CPC

- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G16H 50/20: for computer-aided diagnosis, e.g. based on medical expert systems
- G06N 3/045: Combinations of networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA

## Abstract

An apparatus comprises processing circuitry configured to pre-process text data for inputting to a trained model, the pre-processing comprising: receiving a set of text data including numerical information, the set of text data comprising a plurality of tokens, wherein a first subset of the plurality of tokens comprises tokens that do not comprise numerical information, and a second subset of the plurality of tokens comprises tokens that each comprise respective numerical information; transforming each of the plurality of tokens into a respective encoding vector, each of the plurality of tokens in the second subset having a common encoding vector; assigning a respective numerical vector to each of the plurality of tokens, wherein each token in the second subset is assigned a respective numerical vector in dependence on the numerical information in said token; and combining the encoding vectors and numerical vectors to obtain a vector representation of the text data.

## Claims

### Claim 1

An apparatus comprising processing circuitry configured to pre-process text data for inputting to a trained model, the pre-processing comprising:
receiving a set of text data including numerical information, the set of text data comprising a plurality of tokens,
wherein a first subset of the plurality of tokens comprises tokens that do not comprise numerical information, and a second subset of the plurality of tokens comprises tokens that each comprise respective numerical information;
transforming each of the plurality of tokens into a respective encoding vector, each of the plurality of tokens in the second subset having a common encoding vector;
assigning a respective numerical vector to each of the plurality of tokens, wherein each token in the second subset is assigned a respective numerical vector in dependence on the numerical information in said token; and
combining the encoding vectors and numerical vectors to obtain a vector representation of the text data.

### Claim 2 (depends on 1)

An apparatus according to claim 1, wherein each token in the first subset is assigned the same numerical vector.

### Claim 3 (depends on 1)

An apparatus according to claim 1, wherein each token comprises a respective word, word-piece, group of words, number, or symbol.

### Claim 4 (depends on 1)

An apparatus according to claim 1, wherein the combining of the encoding vectors and numerical vectors comprises, for each token, appending the numerical vector for said token to the encoding vector for said token.

### Claim 5 (depends on 1)

An apparatus according to claim 1, wherein the processing circuitry is further configured to input the vector representation to the trained model and to use the trained model to process the vector representation to obtain a desired output.

### Claim 6 (depends on 1)

An apparatus according to claim 1, wherein the trained model comprises a neural network.

### Claim 7 (depends on 1)

An apparatus according to claim 1, wherein the trained model is trained to approximate at least one mathematical operation.

### Claim 8 (depends on 5)

An apparatus according to claim 5, wherein the desired output comprises at least one of a comparison of two or more numbers in the text data; a determination of whether a number in the text data belongs to an interval; a comparison of a number in the text data to a target value.

### Claim 9 (depends on 5)

An apparatus according to claim 5, wherein the desired output comprises at least one of an assessment of a subject's condition; a chance of survival, an assessment of contraindications; a diagnosis; a prediction; a likelihood of an outcome; a summary of the text data; a determination of whether a number in the text data is normal; a determination of whether a number in the text data is abnormal.

### Claim 10 (depends on 1)

An apparatus according to claim 1 wherein the text data comprises clinical notes and wherein the numerical information comprises at least one of laboratory data, symptom data, vital signs data, dosage data, measurement data, genomic data.

### Claim 11 (depends on 1)

An apparatus according to claim 1, wherein the processing circuitry is further configured to display at least part of the text data to a user, and to highlight at least one number in the display of the text data in dependence on at least one output of the trained model.

### Claim 12 (depends on 1)

An apparatus according to claim 1, wherein the vector representation is configured to capture a natural ordering of numbers.

### Claim 13 (depends on 1)

An apparatus according to claim 1, wherein each numerical vector comprises at least one of a) to d):—
a) a fixed length vector comprising or representing the numerical information;
b) a vector of length 1 comprising or representing the numerical information;
c) a vector of length 2 comprising a mantissa and exponent that comprise or represent the numerical information;
d) a vector of length k formed by applying k weakly monotonic functions with overlapping dynamic ranges to the numerical information.

### Claim 14

A method of pre-processing text data for inputting to a trained model, the method comprising:
receiving a set of text data including numerical information, the set of text data comprising a plurality of tokens,
wherein a first subset of the plurality of tokens comprises tokens that do not comprise numerical information, and a second subset of the plurality of tokens comprises tokens that each comprise respective numerical information;
transforming each of the plurality of tokens into a respective encoding vector, each of the plurality of tokens in the second subset having a common encoding vector;
assigning a respective numerical vector to each of the plurality of tokens, wherein each token in the second subset is assigned a respective numerical vector in dependence on the numerical information in said token; and
combining the encoding vectors and numerical vectors to obtain a vector representation of the text data.

### Claim 15

An apparatus comprising processing circuitry configured to:
receive a vector representation of a set of text data, wherein the vector representation has been obtained by pre-processing the set of text data, the pre-processing comprising:
receiving the set of text data, wherein the set of text data includes numerical information, the set of text data comprises a plurality of tokens, a first subset of the plurality of tokens comprises tokens that do not comprise numerical information, and a second subset of the plurality of tokens comprises tokens that each comprise respective numerical information;
transforming each of the plurality of tokens into a respective encoding vector, each of the plurality of tokens in the second subset having a common encoding vector;
assigning a respective numerical vector to each of the plurality of tokens, wherein each token in the second subset is assigned a respective numerical vector in dependence on the numerical information in said token; and
combining the encoding vectors and numerical vectors to obtain the vector representation of the text data; and
apply a trained model to the vector representation to obtain a desired output.

### Claim 16

A method comprising:
receiving a vector representation of a set of text data, wherein the vector representation has been obtained by pre-processing the set of text data, the pre-processing comprising:
receiving the set of text data, wherein the set of text data includes numerical information, the set of text data comprises a plurality of tokens, a first subset of the plurality of tokens comprises tokens that do not comprise numerical information, and a second subset of the plurality of tokens comprises tokens that each comprise respective numerical information;
transforming each of the plurality of tokens into a respective encoding vector, each of the plurality of tokens in the second subset having a common encoding vector;
assigning a respective numerical vector to each of the plurality of tokens, wherein each token in the second subset is assigned a respective numerical vector in dependence on the numerical information in said token; and
combining the encoding vectors and numerical vectors to obtain the vector representation of the text data; and
applying a trained model to the vector representation to obtain a desired output.

### Claim 17

An apparatus comprising processing circuitry configured to:
receive a vector representation of training text data, the vector representation comprising a respective encoding vector and numerical vector for each of a plurality of tokens in the training text data; and
use the vector representation of the training text data to train a model to produce a desired output when provided with a vector representation of a target text, wherein the desired output is dependent on numerical information in the target text.

### Claim 18

A method comprising:
receiving a vector representation of training text data, the vector representation comprising a respective encoding vector and numerical vector for each of a plurality of tokens in the training text data; and
using the vector representation of the training text data to train a model to produce a desired output when provided with a vector representation of a target text, wherein the desired output is dependent on numerical information in the target text.

### Claim 19

An apparatus comprising processing circuitry configured to:
receive training text data; and
train a model on the training text data, such that the model is trained to learn contextualized semantic meaning of a plurality of numbers in the text data from contextual information in tokens around the numbers and to pass values for the numbers to an inference system.

### Claim 20

A method comprising:
receiving training text data; and
training a model on the training text data, such that the model is trained to learn contextualized semantic meaning of a plurality of numbers in the text data from contextual information in tokens around the numbers and to pass values for the numbers to an inference system.
