(self, embedding_model, word_embedding_model)
| 8 | """Combine a document- and word-level embedder.""" |
| 9 | |
| 10 | def __init__(self, embedding_model, word_embedding_model): |
| 11 | super().__init__() |
| 12 | |
| 13 | self.embedding_model = select_backend(embedding_model) |
| 14 | self.word_embedding_model = select_backend(word_embedding_model) |
| 15 | |
| 16 | def embed_words(self, words: List[str], verbose: bool = False) -> np.ndarray: |
| 17 | """Embed a list of n words into an n-dimensional |
nothing calls this directly
no test coverage detected