Definition at line 19 of file recommendations.py.
◆ __init__()
| def robotide.lib.robot.utils.recommendations.RecommendationFinder.__init__ |
( |
|
self, |
|
|
|
normalizer = None |
|
) |
| |
◆ _calculate_cutoff()
| def robotide.lib.robot.utils.recommendations.RecommendationFinder._calculate_cutoff |
( |
|
self, |
|
|
|
string, |
|
|
|
min_cutoff = .5, |
|
|
|
max_cutoff = .85, |
|
|
|
step = .03 |
|
) |
| |
|
private |
Calculate a cutoff depending on string length.
Default values determined by manual tuning until the results
"look right".
Definition at line 74 of file recommendations.py.
◆ _get_normalized_candidates()
| def robotide.lib.robot.utils.recommendations.RecommendationFinder._get_normalized_candidates |
( |
|
self, |
|
|
|
candidates |
|
) |
| |
|
private |
◆ _get_original_candidates()
| def robotide.lib.robot.utils.recommendations.RecommendationFinder._get_original_candidates |
( |
|
self, |
|
|
|
norm_candidates, |
|
|
|
norm_matches |
|
) |
| |
|
private |
◆ find_recommendations()
| def robotide.lib.robot.utils.recommendations.RecommendationFinder.find_recommendations |
( |
|
self, |
|
|
|
name, |
|
|
|
candidates, |
|
|
|
max_matches = 10 |
|
) |
| |
Return a list of close matches to name from candidates.
Definition at line 25 of file recommendations.py.
◆ format_recommendations()
| def robotide.lib.robot.utils.recommendations.RecommendationFinder.format_recommendations |
( |
|
msg, |
|
|
|
recommendations |
|
) |
| |
|
static |
Add recommendations to the given message.
The recommendation string looks like:
<msg> Did you mean:
<recommendations[0]>
<recommendations[1]>
<recommendations[2]>
Definition at line 46 of file recommendations.py.
◆ normalizer
| robotide.lib.robot.utils.recommendations.RecommendationFinder.normalizer |
The documentation for this class was generated from the following file: