Skip to content
Snippets Groups Projects
Commit 422f5f77 authored by “Daniel Griffiths”'s avatar “Daniel Griffiths”
Browse files

fix: added default values to class variables

parent c7603136
Branches
Tags
No related merge requests found
......@@ -4,11 +4,13 @@ from semantic_router.encoders import BaseEncoder
from semantic_router.route import Route
from numpy.linalg import norm
import string
from typing import Dict
from numpy import ndarray
class TfidfEncoder(BaseEncoder):
idf: np.ndarray
word_index: dict
idf: ndarray = np.array([])
word_index: Dict = {}
def __init__(self, name: str = "tfidf"):
super().__init__(name=name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment