I ported the old verify.py so that it can be used as a processor within INCA and that it also accepts multiple questions to annotate.
Example usage (assuming an elasticsearch instance is running and there are at least some nu articles in the database):
from inca import Inca
myinca = Inca()
p = myinca.processing.annotate(docs_or_query='nu',field='text',highlight_regexp = 'hij',new_key='myproject', questions={'relevant':'Is dit relevant?'})
data = next(p)
(this annotates only one article and returns the result as a dict called data)
I ported the old verify.py so that it can be used as a processor within INCA and that it also accepts multiple questions to annotate. Example usage (assuming an elasticsearch instance is running and there are at least some nu articles in the database):
(this annotates only one article and returns the result as a dict called data)