Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abhijeet-talaulikar/47d370004f5eb7746550dd67255e44cb to your computer and use it in GitHub Desktop.
Save abhijeet-talaulikar/47d370004f5eb7746550dd67255e44cb to your computer and use it in GitHub Desktop.
from finbert_embedding.embedding import FinbertEmbedding
# Convert text to vectors using pretrained finbert embeddings
finbert = FinbertEmbedding()
embeddings = np.array([finbert.sentence_vector(i).numpy() for i in headline_texts])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment