ProjetPP / Documentation

Documentation and protocol specification of the Projet Pensées Profondes
Creative Commons Zero v1.0 Universal
7 stars 1 forks source link

Allow modules to report a strange query #18

Open Ezibenroc opened 9 years ago

Ezibenroc commented 9 years ago

For instance, in the grammatical question parsing module, we have an experimental approach. We expect that some cases will never appear because we never seen them, but exceptions can always exist. We need to know if such cases exists, to correct our module. Right now, we have such line of code in our module: sys.exit('exit: %s dependency unexpected (please, report your sentence on http://goo.gl/EkgO5l)\n' % t).

I think that it would be nicer to allow responses of the modules to do this. For instance, add an attribute report, with a string which explain in English why the request is reported (empty string when no report).

Then, the core would add a special tag in its log, to highlight the reported requests. We would also need to allow modules developers to have access to requests reported by their modules.

progval commented 9 years ago

:+1:

yhamoudi commented 9 years ago

+1

yhamoudi commented 9 years ago

More precisions about why it would be great to have an access asap to questions that produce error messages:

The current algorithm we use has to analyse about 50 dependencies output by the stanford parser. The documentation provided by Stanford is not perfect: we don't know precisely what kinds of dependencies can occure (there is no full list of all possible dependencies). Since we cannot process efficiently dependencies that we don't know, it's important to detect them to correct our algo :)