# US 10,956,466 B2 · Machine learning approach to cross-language translation and search

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

- Number: US 10,956,466 B2
- Document ID: US10956466B2
- Status: Granted
- Kind: B2
- Application number: 16/232,796
- Filed: 2018-12-26
- Published: 2020-07-02
- Granted: 2021-03-23
- Earliest claimed: 2018-12-26
- Assignees: Paypal, Inc.
- Applicants: PayPal, Inc.
- Inventors: Rushik Upadhyay; Dhamodharan Lakshmipathy; Nandhini Ramesh; Aditya Kaulagi
- Web page: https://patentgrep.com/patent/US10956466B2

## CPC

- G06F 16/3337: {Translation of the query language, e.g. Chinese to English}
- G06F 16/313: {Selection or weighting of terms for indexing}
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/53: Processing of non-Latin text (kana-to-kanji conversion G06F40/129; vowelisation G06F40/232)
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Techniques are disclosed relating to implementing a machine learning approach to cross-language translation and search. In certain embodiments, a method may include receiving a plurality of characters of a first language that are unsegmented and grouping the plurality of character into multiple groups. The method also includes determining a set of word tokens based on one or more transliterations of the multiple groups and one or more translations of the multiple groups to a second language. Further, the method includes generating one or more word token solution sets by querying an index file using the one or more word tokens. The method also includes determining whether the index file references an entity name corresponding to the plurality of characters of the first language based on comparing the one or more token solution sets with the index file.

## Claims

### Claim 1

A system, comprising:
one or more hardware processors; and
a memory storing computer-executable instructions, that in response to execution by the one or more hardware processors, causes the system to perform operations comprising:
receiving an input set of characters of a logographic language and grouping the input set of characters into a plurality of character groups based on a grouping algorithm;
determining respective romanizations of the character groups and determining respective translations of the character groups in a second language;
based on the respective romanizations and the respective translations, generating a plurality of word tokens;
performing a query on an index file using one or more subsets of the plurality of word tokens, the query returning one or more results;
generating one or more token solution sets by comparing the plurality of word tokens with the one or more results;
determining, based on a set of elimination criteria, whether to remove any token solution sets from the one or more token solutions sets and identifying one or more remaining token solution sets subsequent to the determining; and
based on comparing the one or more remaining token solution sets with the one or more results, determining a match between the input set of characters and a first result of the one or more results.

### Claim 2 (depends on 1)

The system of claim 1, wherein the logographic language is Chinese and the second language is English.

### Claim 3 (depends on 1)

The system of claim 1, wherein the determining the match between the input set of characters and the first result further comprises:
calculating a similarity score between a first token solution set of the one or more remaining token solution sets and a set of word tokens included in the first result; and
determining that the similarity score satisfies a score threshold.

### Claim 4 (depends on 1)

The system of claim 1, wherein the generating the one or more token solution sets further comprises:
generating respective one more token solution sets for each result of the one or more results.

### Claim 5 (depends on 1)

The system of claim 1, wherein the generating the one or more token solution sets further comprises:
determining that an edit distance between a first word token from the plurality of word tokens and a second word token included in the index file satisfies a distance threshold.

### Claim 6 (depends on 1)

The system of claim 1, wherein the generating the one or more token solution sets further comprises:
accessing a lemmas file that stores a plurality of token pairs, the plurality of token pairs including a first token pair, wherein the first token pair includes a first word token and a second word token;
determining that a third word token of the plurality of word tokens matches the first word token and that a fourth word token included in the index file matches the second word token; and
responsive to determining that the third word token of the plurality of word tokens matches the first word token and that the fourth word token included in the index file matches the second word token, adding the third word token to a token solution set.

### Claim 7 (depends on 1)

The system of claim 1, wherein the one or more token solution sets includes a first token solution set having one or more pairs of word tokens, wherein a first pair of the one or more pairs of word tokens includes a first word token from the plurality of word tokens and a corresponding second word token from the index file.

### Claim 8 (depends on 7)

The system of claim 7, wherein the determining whether to remove any token solution sets from the one or more token solutions sets further comprises:
in response to determining that the second word token corresponds to a romanization of one or more characters of the logographic language, determining whether the first word token is an exact match with the second word token.

### Claim 9 (depends on 8)

The system of claim 8, further comprising:
in response to determining that the first word token is not an exact match with the second word token, removing the first token solution set from the one or more token solution sets.

### Claim 10 (depends on 1)

The system of claim 1, wherein the determining whether to remove any token solution sets from the one or more token solutions sets further comprises:
determining whether a number of character groups represented by the one or more token solution sets satisfies a number threshold.

### Claim 11 (depends on 10)

The system of claim 10, wherein the number threshold is determined based on a second number of character groups included in plurality of character groups.

### Claim 12

A method, comprising:
receiving, by a computer comprising one or more hardware processors, a plurality of characters of a first language that are unsegmented;
segmenting, based on a character grouping algorithm, the plurality of characters into multiple groups, each group including one or more characters of the plurality of characters;
determining a set of word tokens based on one or more transliterations of the multiple groups and one or more translations of the multiple groups to a second language;
generating one or more word token solution sets by querying an index file using the set of word tokens, the index file including words of the second language; and
determining whether the index file references an entity name corresponding to the plurality of characters of the first language based on comparing the one or more token solution sets with the index file.

### Claim 13 (depends on 12)

The method of claim 12, wherein the index file stores a list of entries, each entry of the list of entries corresponding to a respective entity name, and wherein the method further comprises:
for each respective entity name:
calculating respective ranking scores for each word of the respective entity name; and
based on the respective ranking scores, determining one or more words with ranking scores that meet or exceed a threshold for the respective entity name.

### Claim 14 (depends on 12)

The method of claim 12, wherein the determining the set of word tokens further comprises:
generating an initial set of word tokens comprised of each word token included in the one or more transliterations and each word token included in the one or more translations;
identifying a first word token included in the initial set of word tokens as a duplicate of a second word token included in the initial set of word tokens; and
in response to the identifying, removing the first word token from the initial set of word tokens.

### Claim 15 (depends on 12)

The method of claim 12, wherein the querying the index file further comprises:
generating a trigram from the set of word tokens; and
performing a text search against the index file using the trigram.

### Claim 16 (depends on 12)

The method of claim 12, wherein the generating one or more word token solution sets further comprises:
generating an initial set of word token solution sets; and
eliminating a first word token solution set from the initial set of word token solution sets according to elimination criteria.

### Claim 17

A non-transitory computer readable medium storing computer-executable instructions that in response to execution by one or more hardware processors, causes a computer system to perform operations comprising:
receiving a plurality of characters of a first language that are unsegmented;
grouping, based on a character grouping algorithm, the plurality of characters into multiple groups, each group including one or more characters of the plurality of characters;
determining a set of word tokens based on one or more transliterations of the multiple groups and one or more translations of the multiple groups to a second language;
generating one or more word token solution sets by querying an index file using the set of word tokens, the index file including words of the second language; and
determining whether the index file references an entity name corresponding to the plurality of characters of the first language based on comparing the one or more token solution sets with the index file.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the determining the set of word tokens further comprises:
generating an initial set of word tokens comprised of each word token included in the one or more transliterations and each word token included in the one or more translations;
identifying a first word token included in the initial set of word tokens as a duplicate of a second word token included in the initial set of word tokens; and
in response to the identifying, removing the first word token from the initial set of word tokens.

### Claim 19 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the querying the index file further comprises:
generating a trigram from the set of word tokens; and
performing a text search against the index file using the trigram.

### Claim 20 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the generating one or more word token solution sets further comprises:
generating an initial set of word token solution sets; and
eliminating a first word token solution set from the initial set of word token solution sets according to elimination criteria.
