Method and apparatus for providing natural language input in a cartographic system
First Claim
1. A method comprising:
- parsing, by an apparatus, at least one natural language input into one or more words, wherein the at least one natural language input represents at least one cartographic query;
mapping, by the apparatus, the one or more words to at least one function of a cartography system and storing as one or more word-function mappings;
determining, by the apparatus, an availability of the at least one function, one or more parameters associated with the at least one function, and the one or more word-function mappings with respect to at least one component of the cartography system;
classifying, by the apparatus, the at least one cartographic query into at least one of a plurality of query processing levels based, at least in part, on the availability, wherein the query processing levels include (1) a local processing level at which the at least one function, the one or more parameters, or a combination thereof are executed in whole locally at the at least one component of the cartography system based, at least in part, on matching the one or more word-function mappings with predetermined word-function mappings stored locally, (2) a searching processing level at which the at least one function, the one or more parameters, or a combination thereof are executed, at least in part, by conducting at least one search external to the at least component of the cartography system when the one or more word-function mappings are not matched locally, and (3) a routing processing level at which the at least one function, the one or more parameters, or a combination thereof are executed, at least in part, by routing among locations included in the at least one natural language input based, at least in part, on distance information, traffic density information, and temporal information associated with the locations;
initiating, by the apparatus, an execution of the at least one function at the classified at least one query processing level, wherein the execution of the at least one function generates one or more results of the at least one cartographic query based, at least in part, on the one or more parameters; and
initiating, by the apparatus, a presentation of the one or more results as cartographic information in a user interface of the cartography system.
1 Assignment
0 Petitions
Accused Products
Abstract
An approach is provided for classifying natural language input into plurality of query processing levels. The approach involves parsing at least one natural language input into one or more words, wherein the at least one natural language input represents at least one cartographic query. The approach also involves mapping the one or more words to at least one function of a cartography system. The approach further involves determining an availability of the at least one function, one or more parameters associated with the at least one function, or a combination thereof with respect to at least one component of the cartography system. The approach also involves classifying the at least one cartographic query into at least one of a plurality of query processing levels based, at least in part, on the availability. The approach further involves initiating an execution of the at least one function at the classified at least one query processing level, wherein the execution of the at least one function generates one or more results of the at least one cartographic query based, at least in part, on the one or more parameters. The approach also involves causing, at least in part, a presentation of the one or more results as cartographic information in a user interface of the cartography system.
14 Citations
20 Claims
-
1. A method comprising:
-
parsing, by an apparatus, at least one natural language input into one or more words, wherein the at least one natural language input represents at least one cartographic query; mapping, by the apparatus, the one or more words to at least one function of a cartography system and storing as one or more word-function mappings; determining, by the apparatus, an availability of the at least one function, one or more parameters associated with the at least one function, and the one or more word-function mappings with respect to at least one component of the cartography system; classifying, by the apparatus, the at least one cartographic query into at least one of a plurality of query processing levels based, at least in part, on the availability, wherein the query processing levels include (1) a local processing level at which the at least one function, the one or more parameters, or a combination thereof are executed in whole locally at the at least one component of the cartography system based, at least in part, on matching the one or more word-function mappings with predetermined word-function mappings stored locally, (2) a searching processing level at which the at least one function, the one or more parameters, or a combination thereof are executed, at least in part, by conducting at least one search external to the at least component of the cartography system when the one or more word-function mappings are not matched locally, and (3) a routing processing level at which the at least one function, the one or more parameters, or a combination thereof are executed, at least in part, by routing among locations included in the at least one natural language input based, at least in part, on distance information, traffic density information, and temporal information associated with the locations; initiating, by the apparatus, an execution of the at least one function at the classified at least one query processing level, wherein the execution of the at least one function generates one or more results of the at least one cartographic query based, at least in part, on the one or more parameters; and initiating, by the apparatus, a presentation of the one or more results as cartographic information in a user interface of the cartography system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. An apparatus comprising:
-
at least one processor; and at least one memory including computer program code for one or more programs, the at least one memory and the computer program code configured to, with the at least one processor, cause the apparatus to perform at least the following, parse at least one natural language input into one or more words, wherein the at least one natural language input represents at least one cartographic query; map the one or more words to at least one function of a cartography system and storing as one or more word-function mappings; determine an availability of the at least one function, one or more parameters associated with the at least one function, and the one or more word-function mappings with respect to at least one component of the cartography system; classify the at least one cartographic query into at least one of a plurality of query processing levels based, at least in part, on the availability, wherein the query processing levels include (1) a local processing level at which the at least one function, the one or more parameters, or a combination thereof are executed in whole locally at the at least one component of the cartography system based, at least in part, on matching the one or more word-function mappings with predetermined word-function mappings stored locally, (2) a searching processing level at which the at least one function, the one or more parameters, or a combination thereof are executed, at least in part, by conducting at least one search external to the at least component of the cartography system when the one or more word-function mappings are not matched locally, and (3) a routing processing level at which the at least one function, the one or more parameters, or a combination thereof are executed, at least in part, by routing among locations included in the at least one natural language input based, at least in part, on distance information, traffic density information, and temporal information associated with the locations; initiate an execution of the at least one function at the classified at least one query processing level, wherein the execution of the at least one function generates one or more results of the at least one cartographic query based, at least in part, on the one or more parameters; and initiate a presentation of the one or more results as cartographic information in a user interface of the cartography system. - View Dependent Claims (14, 15, 16, 17, 18)
-
-
19. A non-transitory computer-readable storage medium carrying one or more sequences of one or more instructions which, when executed by one or more processors, cause an apparatus to at least perform the following steps:
-
parsing at least one natural language input into one or more words, wherein the at least one natural language input represents at least one cartographic query; mapping the one or more words to at least one function of a cartography system and storing as one or more word-function mappings; determining an availability of the at least one function, one or more parameters associated with the at least one function, and the one or more word-function mappings with respect to at least one component of the cartography system; classifying the at least one cartographic query into at least one of a plurality of query processing levels based, at least in part, on the availability, wherein the query processing levels include (1) a local processing level at which the at least one function, the one or more parameters, or a combination thereof are executed in whole locally at the at least one component of the cartography system based, at least in part, on matching the one or more word-function mappings with predetermined word-function mappings stored locally, (2) a searching processing level at which the at least one function, the one or more parameters, or a combination thereof are executed, at least in part, by conducting at least one search external to the at least component of the cartography system when the one or more word-function mappings are not matched locally, and (3) a routing processing level at which the at least one function, the one or more parameters, or a combination thereof are executed, at least in part, by routing among locations included in the at least one natural language input based, at least in part, on distance information, traffic density information, and temporal information associated with the locations; initiating an execution of the at least one function at the classified at least one query processing level, wherein the execution of the at least one function generates one or more results of the at least one cartographic query based, at least in part, on the one or more parameters; and initiating a presentation of the one or more results as cartographic information in a user interface of the cartography system. - View Dependent Claims (20)
-
Specification