Main API¶
Implements the Quepy Application API
-
class
quepy.quepyapp.
QuepyApp
(parsing, settings)¶ Provides the quepy application API.
-
get_queries
(question)¶ Given question in natural language, it returns three things:
- the target of the query in string format
- the query
- metadata given by the regex programmer (defaults to None)
The queries returned corresponds to the regexes that match in weight order.
-
get_query
(question)¶ Given question in natural language, it returns three things:
- the target of the query in string format
- the query
- metadata given by the regex programmer (defaults to None)
The query returned corresponds to the first regex that matches in weight order.
-
-
quepy.quepyapp.
install
(app_name)¶ Installs the application and gives an QuepyApp object