150 likes | 281 Views
Simplifying Syntactic and Semantic Parsing of NL Based Queries in Advanced Application Domains. E. Kapetanios, D. Baer, P. Groenewoud Dept. of Computer Science, ETH Zürich. 8 th Inter. Conf. on Applications of Natural LanguageTo Information Systems NLDB 2003. Problem statement.
E N D
Simplifying Syntactic and Semantic Parsing of NL Based Queries in Advanced Application Domains E. Kapetanios, D. Baer, P. Groenewoud Dept. of Computer Science, ETH Zürich 8th Inter. Conf. on Applications of Natural LanguageTo Information Systems NLDB 2003
Problem statement • Need to pose queries with an NL based query interface • Advanced application domains are considered, e.g., scientific and technical domains • Use more than one (sub)language, e.g., English, German, French, Italian • Take data out of a DBMS box
Conventional Parsing Techniques • Syntactically parse the query to check if compliant with a grammar • Semantically parse the query to, mostly, grasp the grammatic role of terms within the query • Pragmatically do something with this query, e.g., address data out of a DBMS box
...and their defficiencies • A syntactically correct query might be meaningless • Semantic parsing might still lead to meaningless statements if not driven by the application domain semantics • Preassumption that the user is familiar with the whole range of an advanced application domain vocabulary, since parsing takes place after completion of the query • Parsing becomes too complex when different natural languages are concerned
Our (MDDQL) approach • Application domain semantics (ontology) drive the construction of queries through suggestion of meaningful terms • Syntax is determined by semantics • No need to consider different syntactic and semantic parsing techniques when changing natural language interfaces • Data are taken out of the same DBMS box regardless the preferred NL
MDDQL ingredients as a language • An Object-Oriented Ontology Description Language (O3DL) providing the Query Language Vocabulary • Graph-based Inference Services for both • High Level Query Construction operating upon the ontology graph and • Transformation to, e.g., SQL, operating upon the corresponding high level query tree
An example high level query tree Class Relationship Property Class Property Instance Property
Inferring SQL statements o3 – PATIENTHIST o50 – PATIENTHIST.HISTRMED o100 – PATIENTHIST.HISTRMED.HASPIR . . . . . . . . . . . . . . . . . . . . . SELECT {} FROM {} WHERE {} Transformation
Synopsis • Syntactic and semantic parsing replaced by having application domain semantics driving the query construction • ...resulting into a high level query tree which reflects the constructed query semantics
Contribution • No need to implement complex semantic parsing techniques • No need to implement different parsing techniques for each added-on natural (sub)language • No need to know spelling and intentional semantics of all possible terms in an advanced application domain • Alleviate semantic disambiguation of homonyms (context dependency) during query construction