IP Library Granted Patent US 9,946,710
Granted Patent B2
US 9,946,710 · App. 15/312,443 · Granted Apr 17, 2018

Language conversion apparatus, language conversion method, and language conversion program

Inventor: Keita Yamaguchi (Tokyo, JP)
Assignee: SOFTBANK CORP.
G06F17/2872G06F17/274G06F17/2725
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 9,946,710
App. No.
15/312,443
Granted
Apr 17, 2018
Kind
B2
Abstract

Business rule statements written in a natural language are automatically converted into DRL language sentences. A language conversion apparatus 10 includes: a storage device 16 that stores syntax definition information 30 for defining syntaxes to convert a business rule statement written in a natural language into a DRL language sentence on a syntax basis, and conversion information 40 for converting element variables of the business rule statement into element variables of the DRL language sentence; and a CPU 11 that analyzes a syntax of the business rule statement by comparing the business rule statement with the syntax definition information 30 and converts the business rule statement into the DRL language sentence by referring to the conversion information 40.

Claims (15)

1. A language conversion apparatus comprising:

a storage device that stores syntax definition information for defining a plurality of syntaxes for converting a business rule statement, which is written in a natural language and composed of one or more syntax elements, into a Drools Rule Language sentence on a syntax basis, and conversion information for converting an element variable included in the syntax element or syntax elements of the business rule statement into an element variable of the Drools Rule Language sentence;

a syntax analysis device for judging which one of the plurality of syntaxes defined by the syntax definition information matches a syntax of the business rule statement, by comparing a character string of the business rule statement with a character string of the syntax element constituting each syntax defined by the syntax definition information;

a conversion device that converts the business rule statement into the Drools Rule Language sentence by converting the element variable of the business rule statement into the element variable of the Drools Rule Language sentence with reference to the conversion information and converting the syntax element other than the element variable of the business rule statement into a syntax element of the Drools Rule Language sentence having the syntax which has been judged to match the syntax of the business rule statement, wherein the syntax definition information is classified into patterns so that the business rule statement can be converted into the Drools Rule Language sentence by means of a combination of a plurality of types of basic syntaxes; and

an interface connected to the apparatus, which outputs the converted Drools Rule Language sentence.

2. The language conversion apparatus according to claim 1 , wherein the syntax definition information includes information about character strings, which distinguish and define a control syntax depending on its type, and defines conversion of a specific syntax written in the business rule statement into the Drools Rule Language sentence which varies depending on the type of the control syntax in which the specific syntax is written; and wherein the syntax analysis device judges whether or not a character string which defines the control syntax is written in the specific syntax of the business rule statement; and when an affirmative result of the judgment is obtained, the conversion device converts the specific syntax into the Drools Rule Language sentence which varies depending on the type of the control syntax.

3. The language conversion apparatus according to claim 1 , wherein the business rule statement includes a nested structure in which a plurality of syntaxes are nested; wherein the syntax analysis device analyzes a syntax of the entire nested structure; and wherein the conversion device prioritizes an inner syntax inside the nested structure upon conversion to the Drools Rule Language sentence.

4. A language conversion method executed by a computer, comprising:

a step of comparing a character string of a syntax element, which constitutes each syntax defined by syntax definition information for defining a plurality of syntaxes for converting a business rule statement written in a natural language and composed of one or more syntax elements into a Drools Rule Language sentence on a syntax basis, with a character string of the business rule statement, thereby judging which one of the plurality of syntaxes defined by the syntax definition information matches a syntax of the business rule statement;

a step of converting the business rule statement into the Drools Rule Language sentence by referring to conversion information for converting an element variable included in the syntax element or syntax elements of the business rule statement into an element variable of the Drools Rule Language sentence and thereby converting the element variable of the business rule statement into the element variable of the Drools Rule Language sentence, and converting the syntax element other than the element variable of the business rule statement into a syntax element of the Drools Rule Language sentence having the syntax which has been judged to match the syntax of the business rule statement, wherein the syntax definition information is classified into patterns so that the business rule statement can be converted into the Drools Rule Language sentence by means of a combination of a plurality of types of basic syntaxes; and

a step of outputting the converted Drools Rule Language sentence by the computer.

5. A non-transitory computer readable medium storing a program which causes a computer to execute:

a step of comparing a character string of a syntax element, which constitutes each syntax defined by syntax definition information for defining a plurality of syntaxes for converting a business rule statement written in a natural language and composed of one or more syntax elements into a Drools Rule Language sentence on a syntax basis, with a character string of the business rule statement, thereby judging which one of the plurality of syntaxes defined by the syntax definition information matches a syntax of the business rule statement;

a step of converting the business rule statement into the Drools Rule Language sentence by referring to conversion information for converting an element variable included in the syntax element or syntax elements of the business rule statement into an element variable of the Drools Rule Language sentence and thereby converting the element variable of the business rule statement into the element variable of the Drools Rule Language sentence, and converting the syntax element other than the element variable of the business rule statement into a syntax element of the Drools Rule Language sentence having the syntax which has been judged to match the syntax of the business rule statement, wherein the syntax definition information is classified into patterns so that the business rule statement can be converted into the Drools Rule Language sentence by means of a combination of a plurality of types of basic syntaxes; and

a step of outputting the converted Drools Rule Language sentence by the computer.

Assignments (2)
CHANGE OF ADDRESS Recorded Mar 10, 2021
From: SOFTBANK CORP.
To: SOFTBANK CORP.
Reel/Frame 056594/0681 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 13, 2017
From: YAMAGUCHI, KEITA
To: SOFTBANK CORP.
Reel/Frame 042005/0051 →
Priority Claims (1)
JP 2014-104875 · May 21, 2014 · national
Continuity (1)
Related Publication 20170091180A1 · Mar 30, 2017