We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e13a801 + f0f5d79 commit a0c11aeCopy full SHA for a0c11ae
modelcache/embedding/data2vec.py
@@ -14,11 +14,11 @@ def mean_pooling(model_output, attention_mask):
14
15
16
class Data2VecAudio(BaseEmbedding):
17
- def __init__(self, model: str = "sentence-transformers/all-MiniLM-L6-v2"):
+ def __init__(self, model: str = "model/text2vec-base-chinese/"):
18
current_dir = os.path.dirname(os.path.abspath(__file__))
19
parent_dir = os.path.dirname(current_dir)
20
model_dir = os.path.dirname(parent_dir)
21
- model = os.path.join(model_dir, 'model/text2vec-base-chinese/')
+ model = os.path.join(model_dir, model)
22
23
try:
24
self.__dimension = self.model.config.hidden_size
0 commit comments