deeppavlov.skills.ecommerce_skill

class deeppavlov.skills.ecommerce_skill.tfidf_retrieve.EcommerceSkillTfidf(save_path: str, load_path: str, entropy_fields: list, min_similarity: float = 0.5, min_entropy: float = 0.5, **kwargs)[source]

Class to retrieve product items from load_path catalogs in sorted order according to the similarity measure Retrieve the specification attributes with corresponding values in sorted order according to entropy.

Parameters:
  • save_path – path to save a model
  • load_path – path to load a model
  • entropy_fields – the specification attributes of the catalog items
  • min_similarity – similarity threshold for ranking
  • min_entropy – min entropy threshold for specifying
fit(data, query) → None[source]

Preprocess items title and description from the data

Parameters:data – list of catalog items
Returns:None
load() → None[source]

Load classifier parameters

save() → None[source]

Save classifier parameters