switched to en_core_web_sm
Browse files- introduck/inference.py +3 -3
introduck/inference.py
CHANGED
@@ -2,7 +2,7 @@ import spacy
|
|
2 |
|
3 |
|
4 |
def _load_spacy_model() -> spacy.Language:
|
5 |
-
spacy_model_name: str = "
|
6 |
|
7 |
if not hasattr(_load_spacy_model, "nlp"):
|
8 |
nlp = spacy.load(name=spacy_model_name)
|
@@ -40,7 +40,7 @@ Hi,
|
|
40 |
Thanks for reaching out! I will be glad to make an intro to {PERSON or COMPANY}!
|
41 |
|
42 |
Looking forward to talking to you,
|
43 |
-
{SIGNATURE}
|
44 |
"""
|
45 |
|
46 |
return msg
|
@@ -59,7 +59,7 @@ I'm not able to make an intro at this time,
|
|
59 |
but I'll keep your company in mind for the future.
|
60 |
|
61 |
Thanks again,
|
62 |
-
{SIGNATURE}
|
63 |
"""
|
64 |
|
65 |
return msg
|
|
|
2 |
|
3 |
|
4 |
def _load_spacy_model() -> spacy.Language:
|
5 |
+
spacy_model_name: str = "en_core_web_sm"
|
6 |
|
7 |
if not hasattr(_load_spacy_model, "nlp"):
|
8 |
nlp = spacy.load(name=spacy_model_name)
|
|
|
40 |
Thanks for reaching out! I will be glad to make an intro to {PERSON or COMPANY}!
|
41 |
|
42 |
Looking forward to talking to you,
|
43 |
+
{SIGNATURE}\
|
44 |
"""
|
45 |
|
46 |
return msg
|
|
|
59 |
but I'll keep your company in mind for the future.
|
60 |
|
61 |
Thanks again,
|
62 |
+
{SIGNATURE}\
|
63 |
"""
|
64 |
|
65 |
return msg
|