Exemplo n.º 1
0
def score_tool_args(word, tool_args, root_cmd):
    return (1-word_freqs.get(word, 0)) * tool_args.score(root_cmd, word)
Exemplo n.º 2
0
def score_tool_args(word, tool_args, root_cmd):
    return (1 - word_freqs.get(word, 0)) * tool_args.score(root_cmd, word)
Exemplo n.º 3
0
def score_tool_name(word, tool_name):
    return (1-word_freqs.get(word, 0)) * scores.get(word, EMPTY).get(tool_name, 0) * (1-code_freqs.get(tool_name, 0))
Exemplo n.º 4
0
def score_tool_name(word, tool_name):
    return (1 - word_freqs.get(word, 0)) * scores.get(word, EMPTY).get(
        tool_name, 0) * (1 - code_freqs.get(tool_name, 0))