fajifr / recontent

Content recommendation API
MIT License
0 stars 1 forks source link

Create Recommender interface #4

Closed frankcleary closed 8 years ago

frankcleary commented 8 years ago

Each recommender will implement a common interface. We need to define this interface in python so everyone can implement it, something like:

class Recommender:
    getRecommenderId():  # return the ID of this implementation for tracking
        raise NotImplementedError()
    getRecommendation(id):  # return a list of IDs of recommended articles
        raise NotImplementedError()
    getRecommendationFromText(text):  # process text and return list of IDs of recommended 
articles
        raise NotImplementedError()
Freija commented 8 years ago

A first version was implemented with commit 1e4b374.

Freija commented 8 years ago

Done!