Python port of the Ruby code Candidate Smasher on GitHub at https://github.com/Display-Lab/candidate-smasher
-
Issue with method Ruby merge_external_templates(): The variable “t_ids” is set in the first line of the method but is not used. This is possibly a mistake.
-
The Ruby method generate_candidates() uses the Ruby function flatten(). Python doesn't have an equivalent, so I wrote one. My flatten() function only flattens one level (i.e. it is equivalent to ruby flatten(1)). In the future, this function should be improved to use more than one level. I am not sure if this is an issue with actual data.