Downloads · 30 days
0
grantg123/bertlogic
bertlogic is a machine learning model from grantg123. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Mar 4, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 75%
From the Hugging Face model README
!pip install simpletransformers
!pip freeze | grep simpletransformers
base_model: bert-base-uncased
tokenizer = BertTokenizer.from_pretrained
model = BertModel.from_pretrained
input_text: You are hurting my feelings. You must be mean.
tokenized_input = tokenizer(input_text, return_tensors='pt')
outputs = model(**tokenized_input)
hidden_states = outputs.last_hidden_state
pooled_output = outputs.pooler_output