sci_watch.parser.query module
- class sci_watch.parser.query.Query(title: str, raw_content: str)[source]
Bases:
object
Keyword query class
- eval_with_document(document: Document) bool [source]
Evaluate a query given a document. If the document matches the query returns true otherwise returns false
- Parameters:
document (Document) – The document to evaluate the query on
- Returns:
True if the document matches the query, false otherwise
- Return type:
bool