nlu.recommendation_decision_processing¶
This module is used to process the user’s decision on a movie recommendation.
Module Contents¶
Classes¶
Enum class for recommendation choices. |
Functions¶
|
Converts a choice to a preference within the range [-1,1]. |
- class nlu.recommendation_decision_processing.RecommendationChoices¶
Bases:
enum.EnumEnum class for recommendation choices.
- ACCEPT = 'accept'¶
- REJECT = 'reject'¶
- DONT_LIKE = 'dont_like'¶
- WATCHED = 'watched'¶
- nlu.recommendation_decision_processing.convert_choice_to_preference(choice: RecommendationChoices) float¶
Converts a choice to a preference within the range [-1,1].
Dislike is represented by a preference below 0, while like is represented by a preference above 0. If the choice does not express a preference (e.g., inquire), then the preference is neutral, i.e., 0. Possible choices are: accept, reject, dont_like, inquire, and watched.
- Parameters:
choice – Choice.
- Returns:
Preference within the range [-1,1].