search_query.translator_base

Pubmed query translator.

Classes

QueryTranslator()

Translator for queries.

class search_query.translator_base.QueryTranslator

Bases: object

Translator for queries.

classmethod flatten_nested_operators(query: Query) None

Check if there are double nested operators.

classmethod move_fields_to_operator(query: Query) None

move search fields to operator query

classmethod move_fields_to_terms(query: Query) None

Move the search field from the operator to the terms.

abstract classmethod to_generic_syntax(query: Query) Query

Convert the query to a generic syntax.

abstract classmethod to_specific_syntax(query: Query) Query

Convert the query to a specific syntax.