Last active
October 11, 2021 14:41
-
-
Save davidmezzetti/a94ffffa565e1ce2c44261a72c3eb297 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from txtai.embeddings import Embeddings | |
from txtai.pipeline import Extractor | |
# Create embeddings model, backed by sentence-transformers & transformers | |
embeddings = Embeddings({"path": "sentence-transformers/nli-mpnet-base-v2"}) | |
# Create extractor instance | |
extractor = Extractor(embeddings, "distilbert-base-cased-distilled-squad") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment