Skip to content

Commit e85c627

Browse files
committed
Updated code
1 parent 5be9aef commit e85c627

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

model2vec/inference/model.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ def normalize(self, value: bool) -> None:
4848
"""Set the normalization of the model."""
4949
self.model.normalize = value
5050

51-
@property
52-
def embeddings(self) -> np.ndarray:
53-
"""Get the embeddings of the model."""
54-
return self.model.embedding
55-
5651
@property
5752
def tokenizer(self) -> str:
5853
"""Get the tokenizer of the model."""
@@ -411,6 +406,6 @@ def get_most_important_tokens(model: Any, token_logits: dict[int, np.ndarray], t
411406
logit = float(token_logit[label_idx])
412407
results.append((token_str, logit))
413408

414-
# Sort tokens by descending importance.
409+
# Sort tokens by descending importance
415410
results.sort(key=lambda x: x[1], reverse=True)
416411
return results

0 commit comments

Comments
 (0)