# US 2025/0148202 A1 · Semantic parsing for short text

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

- Number: US 2025/0148202 A1
- Document ID: US20250148202A1
- Status: Published application
- Kind: A1
- Application number: 19/016,233
- Filed: 2025-01-10
- Published: 2025-05-08
- Earliest claimed: 2022-04-25
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Hongyu XIONG; Han WANG; Rui LI; Yiqi FENG; Yuan GAO; Xiangyu ZENG; Qingyi LU; Bin LIU
- Web page: https://patentgrep.com/patent/US20250148202A1

## CPC

- G06F 40/211: Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
- G06F 16/3344: {using natural language analysis}
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure relate to semantic parsing for short text. According to embodiments of the present disclosure, a method is proposed. The method comprises: obtaining a set of sentences associated with a short text, each of the set of sentences containing all of words in the short text; determining a set of syntactic features associated with the set of sentences, each of the set of syntactic features indicating at least one of a constituency relation and a dependency relation of the corresponding sentence; and determining a semantic structure of the short text based on the set of syntactic features.

## Claims

### Claim 1

A method, comprising:
obtaining a set of sentences associated with a short text, each of the set of sentences containing all of words in the short text;
determining a set of syntactic features associated with the set of sentences, each of the set of syntactic features indicating at least one of a constituency relation or a dependency relation of the corresponding sentence; and
determining a semantic structure of the short text based on the set of syntactic features, the semantic structure comprising a constituent for each of the words.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the semantic structure of the short text comprises:
determining at least one candidate semantic structure of the short text based on the set of syntactic features;
determining a frequency of occurrence for each of the at least one candidate semantic structure; and
ordering the at least one candidate semantic structure based on the frequency of occurrence.

### Claim 3 (depends on 2)

The method of claim 2, wherein the set of sentences comprises a target sentence, the set of syntactic features comprises a target syntactic feature associated with the target sentence, the target syntactic feature comprises a target constituency tree indicating the constituency relation of the target sentence, the at least one candidate semantic structure comprises a target candidate semantic structure associated with the target sentence, and determining the at least one candidate semantic structure comprises:
determining a sub-tree from the target constituency tree, leaf nodes of the sub-tree consisting of all of the words in the short text; and
restructuring the sub-tree to obtain the target candidate semantic structure.

### Claim 4 (depends on 3)

The method of claim 3, wherein restructuring the sub-tree comprises:
in response to a determination that a part of the short text belongs to a subject and another part of the short text belongs to an object or an adverb,
determining a predicate as a root node of the sub-tree; and
determining the constituent and a part-of-speech for each of the words based on the target constituency tree.

### Claim 5 (depends on 3)

The method of claim 3, wherein restructuring the sub-tree comprises:
in response to a determination that all of the words in the short text belong to a same constituent,
determining a root node of the sub-tree based on the target syntactic feature; and
determining a part-of-speech for the short text.

### Claim 6 (depends on 5)

The method of claim 5, wherein the target syntactic feature further comprises a target dependency tree indicating the dependency relation of the target sentence, and determining the root node comprises:
determining the root node based on the target dependency tree.

### Claim 7 (depends on 1)

The method of claim 1, wherein the short text corresponds to a search query, and obtaining the set of sentences comprises:
extracting a set of documents associated with the search query from a search log; and
acquiring the set of sentences from the set of documents.

### Claim 8 (depends on 1)

The method of claim 1, wherein the set of sentences comprises a target sentence, determining the set of syntactic features comprises:
parsing the target sentence to obtain at least one of the constituency relation and the dependency relation of the target sentence.

### Claim 9

A system, comprising:
at least one processor; and
at least one memory communicatively coupled to the at least one processor and comprising computer-readable instructions that upon execution by the at least one processor cause the at least one processor to perform actions comprising:
obtaining a set of sentences associated with a short text, each of the set of sentences containing all of words in the short text;
determining a set of syntactic features associated with the set of sentences, each of the set of syntactic features indicating at least one of a constituency relation or a dependency relation of the corresponding sentence; and
determining a semantic structure of the short text based on the set of syntactic features, the semantic structure comprising a constituent for each of the words.

### Claim 10 (depends on 9)

The system of claim 9, wherein determining the semantic structure of the short text comprises:
determining at least one candidate semantic structure of the short text based on the set of syntactic features;
determining a frequency of occurrence for each of the at least one candidate semantic structure; and
ordering the at least one candidate semantic structure based on the frequency of occurrence.

### Claim 11 (depends on 10)

The system of claim 10, wherein the set of sentences comprises a target sentence, the set of syntactic features comprises a target syntactic feature associated with the target sentence, the target syntactic feature comprises a target constituency tree indicating the constituency relation of the target sentence, the at least one candidate semantic structure comprises a target candidate semantic structure associated with the target sentence, and determining the at least one candidate semantic structure comprises:
determining a sub-tree from the target constituency tree, leaf nodes of the sub-tree consisting of all of the words in the short text; and
restructuring the sub-tree to obtain the target candidate semantic structure.

### Claim 12 (depends on 11)

The system of claim 11, wherein restructuring the sub-tree comprises:
in response to a determination that a part of the short text belongs to a subject and another part of the short text belongs to an object or an adverb,
determining a predicate as a root node of the sub-tree; and
determining the constituent and a part-of-speech for each of the words based on the target constituency tree.

### Claim 13 (depends on 11)

The system of claim 11, wherein restructuring the sub-tree comprises:
in response to a determination that all of the words in the short text belong to a same constituent,
determining a root node of the sub-tree based on the target syntactic feature; and
determining a part-of-speech for the short text.

### Claim 14 (depends on 13)

The system of claim 13, wherein the target syntactic feature further comprises a target dependency tree indicating the dependency relation of the target sentence, and determining the root node comprises:
determining the root node based on the target dependency tree.

### Claim 15 (depends on 9)

The system of claim 9, wherein the short text corresponds to a search query, and obtaining the set of sentences comprises:
extracting a set of documents associated with the search query from a search log; and
acquiring the set of sentences from the set of documents.

### Claim 16 (depends on 9)

The system of claim 9, wherein the set of sentences comprises a target sentence, determining the set of syntactic features comprises:
parsing the target sentence to obtain at least one of the constituency relation and the dependency relation of the target sentence.

### Claim 17

A non-transitory computer-readable storage medium, storing computer-readable instructions that upon execution by a computing device cause the computing device to perform actions comprising:
obtaining a set of sentences associated with a short text, each of the set of sentences containing all of words in the short text;
determining a set of syntactic features associated with the set of sentences, each of the set of syntactic features indicating at least one of a constituency relation or a dependency relation of the corresponding sentence; and
determining a semantic structure of the short text based on the set of syntactic features, the semantic structure comprising a constituent for each of the words.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein determining the semantic structure of the short text comprises:
determining at least one candidate semantic structure of the short text based on the set of syntactic features;
determining a frequency of occurrence for each of the at least one candidate semantic structure; and
ordering the at least one candidate semantic structure based on the frequency of occurrence.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the set of sentences comprises a target sentence, the set of syntactic features comprises a target syntactic feature associated with the target sentence, the target syntactic feature comprises a target constituency tree indicating the constituency relation of the target sentence, the at least one candidate semantic structure comprises a target candidate semantic structure associated with the target sentence, and determining the at least one candidate semantic structure comprises:
determining a sub-tree from the target constituency tree, leaf nodes of the sub-tree consisting of all of the words in the short text; and
restructuring the sub-tree to obtain the target candidate semantic structure.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the short text corresponds to a search query, and obtaining the set of sentences comprises:
extracting a set of documents associated with the search query from a search log; and
acquiring the set of sentences from the set of documents.
