CottageLabs / idfind

An identifier identifier
1 stars 0 forks source link

redo identification process #25

Closed emanuil-tolev closed 12 years ago

emanuil-tolev commented 12 years ago
  1. cache; 2. regexes from the index

if both fail, return None

^ take this logic out of web.py and put in central place, like dao.Identifier (i.e. all you need to do in web.py is call idfind.dao.Identifier.identify(q=q) and it takes cares of looking at the cache and testing using Identificator from identify.py).

This was discussed before + it's needed for better code re-use. Right now the twitter processing class and the web module have identical copies of the same code, and changes must be implemented in both places which is bad.

It will also help with issues #6, #17.