Downloads · 30 days
3
12% of all-time downloads
ortaymed/bert_assurance
bert_assurance is a text classification model from ortaymed. Use it when you need a label for a piece of text. It is set up for transformers.
This is the model card of an insurance embeddings model that has been trained on customer documentation with 50K datapoints.
Downloads · 30 days
3
12% of all-time downloads
All-time downloads
25
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
This is the model card of an insurance embeddings model that has been trained on customer documentation with 50K datapoints.
from transformers import AutoTokenizer, AutoModel
import torch
# Define the model name (either your custom model or a pre-trained model from Hugging Face)
model_name = "ortaymed/bert_assurance" # Replace with your model name or path
# Your Hugging Face token
hf_token = "your-huggingface-token" # Replace with your actual Hugging Face token
# Load the tokenizer and model with the token
tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=hf_token)
model = AutoModel.from_pretrained(model_name, use_auth_token=hf_token)
# Sample input text
input_text = "Your sample input text goes here."
# Tokenize the input text
inputs = tokenizer(input_text, return_tensors="pt")
# Get embeddings
with torch.no_grad():
outputs = model(**inputs)
# Get the embeddings from the last hidden state
embeddings = outputs.last_hidden_state
print(embeddings)