Commit f8dca06ccd8469131647653a4148562ae4312c42
1 parent
6c5909c9
Exists in
master
and in
1 other branch
Docummentation fixing.
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
src/recommender.py
| @@ -69,15 +69,16 @@ class Recommender: | @@ -69,15 +69,16 @@ class Recommender: | ||
| 69 | 69 | ||
| 70 | def ct(self,cfg): | 70 | def ct(self,cfg): |
| 71 | """ | 71 | """ |
| 72 | - Perform content-based recommendation using tags index as source data. | 72 | + Set recommender attributes to perform content-based recommendation |
| 73 | + using tags index as source data. | ||
| 73 | """ | 74 | """ |
| 74 | self.items_repository = TagsXapianIndex(cfg) | 75 | self.items_repository = TagsXapianIndex(cfg) |
| 75 | self.strategy = ContentBasedStrategy() | 76 | self.strategy = ContentBasedStrategy() |
| 76 | 77 | ||
| 77 | def cta(self,cfg): | 78 | def cta(self,cfg): |
| 78 | """ | 79 | """ |
| 79 | - Perform content-based recommendation using apt-xapian-index as source | ||
| 80 | - data. | 80 | + Set recommender attributes to perform content-based recommendation |
| 81 | + using apt-xapian-index as source data. | ||
| 81 | """ | 82 | """ |
| 82 | self.items_repository = xapian.Database(cfg.axi) | 83 | self.items_repository = xapian.Database(cfg.axi) |
| 83 | self.strategy = AxiContentBasedStrategy() | 84 | self.strategy = AxiContentBasedStrategy() |