IP Library Granted Patent US 11,797,777
Granted Patent B2
US 11,797,777 · App. 17/474,680 · Granted Oct 24, 2023

Support for grammar inflections within a software development framework

Inventors: Bernard Mont-Reynaud (Sunnyvale, CA); Seth Taron (Sunnyvale, CA)
Assignee: SOUNDHOUND AI IP HOLDING, LLC
G06F40/30G06F8/42G06F40/205G06F40/253G10L15/1822G10L15/197
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,797,777
App. No.
17/474,680
Granted
Oct 24, 2023
Kind
B2
Abstract

A natural language understanding server includes grammars specified in a modified extended Backus-Naur form (MEBNF) that includes an agglutination metasymbol not supported by conventional EBNF grammar parsers, as well as an agglutination preprocessor. The agglutination preprocessor applies one or more sets of agglutination rewrite rules to the MEBNF grammars, transforming them to EBNF grammars that can be processed by conventional EBNF grammar parsers. Permitting grammars to be specified in MEBNF form greatly simplifies the authoring and maintenance of grammars supporting inflected forms of words in the languages described by the grammars.

Claims (40)

1. A computer-implemented method for transforming modified Extended Backus-Naur Form (MEBNF) phrase grammars, the computer-implemented method comprising:

obtaining, from a software developer, a MEBNF grammar whose rules contain at least one instance of an agglutination metasymbol distinct from standard EBNF metasymbols;

storing a plurality of agglutination rewrite rules, each agglutination rewrite rule when applied to a MEBNF expression producing a transformed MEBNF expression while preserving the language generated by the MEBNF grammar;

transforming the MEBNF grammar to an equivalent EBNF grammar by applying the agglutination rewrite rules iteratively to remove instances of the agglutination metasymbol, such that the equivalent EBNF grammar does not contain an instance of the agglutination metasymbol;

receiving a natural language query of a user;

parsing the natural language query using the equivalent EBNF grammar; and

performing an action on behalf of the user based on a result of the parsing.

2. The computer-implemented method of claim 1 , wherein the agglutination metasymbol denotes string concatenation.

3. The computer-implemented method of claim 1 , wherein all instances of an agglutination metasymbol in a rewrite rule are followed by a terminal suffix or preceded by a terminal prefix.

4. The computer-implemented method of claim 1 , further comprising parsing the transformed MEBNF grammar with a conventional EBNF parser.

5. The computer-implemented method of claim 1 , wherein the received rules of the MEBNF grammar specify possessive forms for nouns.

6. The computer-implemented method of claim 1 , wherein the received rules of the MEBNF specify plurals for nouns.

7. The computer-implemented method of claim 1 , wherein the received rules of the MEBNF specify conjugations of verbs.

8. The computer-implemented method of claim 1 , wherein the received rules of the MEBNF specify prefix articles of nouns.

9. A non-transitory computer-readable storage medium storing executable program instructions that when executed by a computer processor perform actions comprising:

obtaining, from a software developer, a MEBNF grammar whose rules contain at least one instance of an agglutination metasymbol distinct from standard EBNF metasymbols;

storing a plurality of agglutination rewrite rules, each agglutination rewrite rule when applied to a MEBNF expression producing a transformed MEBNF expression while preserving the language generated by the MEBNF grammar;

transforming the MEBNF grammar to an equivalent EBNF grammar by applying the agglutination rewrite rules iteratively to remove instances of the agglutination metasymbol, such that the equivalent EBNF grammar does not contain an instance of the agglutination metasymbol;

receiving a natural language query of a user;

parsing the natural language query using the equivalent EBNF grammar; and

performing an action on behalf of the user based on a result of the parsing.

10. The non-transitory computer-readable storage medium of claim 9 , wherein the agglutination metasymbol denotes string concatenation.

11. The non-transitory computer-readable storage medium of claim 9 , wherein all instances of an agglutination metasymbol in a rewrite rule are followed by a terminal suffix or preceded by a terminal prefix.

12. The non-transitory computer-readable storage medium of claim 9 , the actions further comprising parsing the transformed MEBNF grammar with a conventional EBNF parser.

13. The non-transitory computer-readable storage medium of claim 9 , wherein the received rules of the MEBNF grammar specify possessive forms for nouns.

14. The non-transitory computer-readable storage medium of claim 9 , wherein the received rules of the MEBNF specify plurals for nouns.

15. The non-transitory computer-readable storage medium of claim 9 , wherein the received rules of the MEBNF specify conjugations of verbs.

16. The non-transitory computer-readable storage medium of claim 9 , wherein the received rules of the MEBNF specify prefix articles of nouns.

17. A computer system comprising:

a computer processor; and

a non-transitory computer-readable storage medium storing executable program instructions that when executed by the computer processor perform actions comprising:

obtaining, from a software developer, a MEBNF grammar whose rules contain at least one instance of an agglutination metasymbol distinct from standard EBNF metasymbols;

storing a plurality of agglutination rewrite rules, each agglutination rewrite rule when applied to a MEBNF expression producing a transformed MEBNF expression while preserving the language generated by the MEBNF grammar;

transforming the MEBNF grammar to an equivalent EBNF grammar by applying the agglutination rewrite rules iteratively to remove instances of the agglutination metasymbol, such that the equivalent EBNF grammar does not contain an instance of the agglutination metasymbol;

receiving a natural language query of a user;

parsing the natural language query using the equivalent EBNF grammar; and

performing an action on behalf of the user based on a result of the parsing.

18. The computer system of claim 17 , wherein the agglutination metasymbol denotes string concatenation.

19. The computer system of claim 17 , wherein all instances of an agglutination metasymbol in a rewrite rule are followed by a terminal suffix or preceded by a terminal prefix.

20. The computer system of claim 17 , the actions further comprising parsing the transformed MEBNF grammar with a conventional EBNF parser.

Assignments (7)
TERMINATION AND RELEASE OF SECURITY INTEREST IN PATENTS Recorded Dec 3, 2024
From: MONROE CAPITAL MANAGEMENT ADVISORS, LLC, AS COLLATERAL AGENT
To: SOUNDHOUND, INC.
Reel/Frame 069480/0312 →
SECURITY INTEREST Recorded Aug 9, 2024
From: SOUNDHOUND, INC.
To: MONROE CAPITAL MANAGEMENT ADVISORS, LLC, AS COLLATERAL AGENT
Reel/Frame 068526/0413 →
RELEASE OF SECURITY INTEREST Recorded Jun 11, 2024
From: ACP POST OAK CREDIT II LLC, AS COLLATERAL AGENT
To: SOUNDHOUND, INC.; SOUNDHOUND AI IP, LLC
Reel/Frame 067698/0845 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 27, 2023
From: SOUNDHOUND AI IP HOLDING, LLC
To: SOUNDHOUND AI IP, LLC
Reel/Frame 064205/0676 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 23, 2023
From: SOUNDHOUND, INC.
To: SOUNDHOUND AI IP HOLDING, LLC
Reel/Frame 064083/0484 →
SECURITY INTEREST Recorded Apr 17, 2023
From: SOUNDHOUND, INC.; SOUNDHOUND AI IP, LLC
To: ACP POST OAK CREDIT II LLC
Reel/Frame 063349/0355 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 14, 2021
From: MONT-REYNAUD, BERNARD; TARON, SETH
To: SOUNDHOUND, INC.
Reel/Frame 057481/0563 →