nordlys.logic.query.query module

Query

Class for representing a query.

TODO: add preprocessing using

Author:Faegheh Hasibi
class nordlys.logic.query.query.Query(query, qid='')[source]

Bases: object

get_ngrams()[source]

Finds all n-grams of the query.

Returns:list of n-grams
get_terms()[source]

Gets query terms.

Returns:list of query terms
qid
query
raw_query