Fix missing probabilities
Browse files
main.py
CHANGED
|
@@ -22,7 +22,7 @@ def add_dict(a, b):
|
|
| 22 |
for key in b:
|
| 23 |
if key not in a:
|
| 24 |
temp[key] = b[key]
|
| 25 |
-
return
|
| 26 |
|
| 27 |
class Chatbot:
|
| 28 |
def __init__(self, name=None, letter_replace: bool = True, data: dict = None, frequency_weight: float = 0, div_by_len: bool = False):
|
|
|
|
| 22 |
for key in b:
|
| 23 |
if key not in a:
|
| 24 |
temp[key] = b[key]
|
| 25 |
+
return temp
|
| 26 |
|
| 27 |
class Chatbot:
|
| 28 |
def __init__(self, name=None, letter_replace: bool = True, data: dict = None, frequency_weight: float = 0, div_by_len: bool = False):
|