add evaluate function to calculate precision rate
Merge branch 'master' of https://github.com/trondarild/applied-ai