Open frankcleary opened 8 years ago
I implemented this as follows:
app.py
, a list of subclasses of the Recommendation class is constructed. One needs to import the subclass explicitly (like for example from recommender.gensimple import GenSimple
) to make it part of that list.this_recommender = random.choice(self.engine_classes)(corpus_name)
.
We'll need to get a recommender implementation for each API call, something like: