ProjetPP / PPP-CAS

Computer Algebra System module for the Projet Pensées Profondes
MIT License
2 stars 3 forks source link

Sentence wrongfully detected as math #5

Closed progval closed 9 years ago

progval commented 10 years ago

On query Antoine de Saint-Exupéry AntoineSaintde−Exupry is displayed as one of the main results. This should be fixed for the public demo.

(issue from https://github.com/ProjetPP/PPP-WebUI/issues/23#issuecomment-65230975)

marc-chevalier commented 10 years ago

Do you suggest some smart solution? Because I think to a lot of heuristics which are easy to dupe.

progval commented 10 years ago

Nope. @ProjetPP/ensl-team, any idea?

progval commented 10 years ago

Maybe ignore it if only has dashes in it, and long words?

Ezibenroc commented 10 years ago

If there is only implicit multiplications and substractions of variables, then ignore it. Refinement: ignore it only if there is few substractions (less than three), and a lot of multiplications (more than twice the number of substractions).

marc-chevalier commented 10 years ago

I like that !

Marc CHEVALIER

Le 02/12/2014 20:28, Tom Cornebize a écrit :

If there is only implicit multiplications and substractions of variables, then ignore it. Refinement: ignore it only if there is few substractions (less than three), and a lot of multiplications (more than twice the number of substractions).

— Reply to this email directly or view it on GitHub https://github.com/ProjetPP/PPP-CAS/issues/5#issuecomment-65288891.

Ezibenroc commented 10 years ago

Fail

I think that we should simply not display the answer of the CAS module if the Wikipedia or Wikidata module answered.

progval commented 10 years ago

This would be difficult to implement without adding a module in front of the core which specifically does that.

On 03/12/2014 12:01, Tom Cornebize wrote:

Fail

I think that we should simply not display the answer of the CAS module if the Wikipedia or Wikidata module answered.


Reply to this email directly or view it on GitHub: https://github.com/ProjetPP/PPP-CAS/issues/5#issuecomment-65390874

marc-chevalier commented 9 years ago

I solve that by ignoring answers which contains the same letters (and in the same number) as the input. In this case, we can assume the CAS does nothing (or at least nothing interesting) and it is rational to return nothing.

Ezibenroc commented 9 years ago

Fail: http://ppp.pony.ovh/?lang=en&q=Saint-Exupery

marc-chevalier commented 9 years ago

Fixed.