ainize / klue-bert-base-re

huggingface.co
Total runs: 18
24-hour runs: 1
7-day runs: 0
30-day runs: -16
Model's Last Updated: July 07 2021
text-classification

Introduction of klue-bert-base-re

Model Details of klue-bert-base-re

bert-base for KLUE Relation Extraction task.

Fine-tuned klue/bert-base using KLUE RE dataset.


Usage


from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("ainize/klue-bert-base-re")
model = AutoModelForSequenceClassification.from_pretrained("ainize/klue-bert-base-re")

# Add "<subj>", "</subj>" to both ends of the subject object and "<obj>", "</obj>" to both ends of the object object.
sentence = "<subj>손흥민</subj>은 <obj>대한민국</obj>에서 태어났다."

encodings = tokenizer(sentence, 
                      max_length=128, 
                      truncation=True, 
                      padding="max_length", 
                      return_tensors="pt")

outputs = model(**encodings)

logits = outputs['logits']

preds = torch.argmax(logits, dim=1)

About us

  • Teachable NLP - Train NLP models with your own text without writing any code
  • Ainize - Deploy ML project using free gpu

Runs of ainize klue-bert-base-re on huggingface.co

18
Total runs
1
24-hour runs
-1
3-day runs
0
7-day runs
-16
30-day runs

More Information About klue-bert-base-re huggingface.co Model

klue-bert-base-re huggingface.co

klue-bert-base-re huggingface.co is an AI model on huggingface.co that provides klue-bert-base-re's model effect (), which can be used instantly with this ainize klue-bert-base-re model. huggingface.co supports a free trial of the klue-bert-base-re model, and also provides paid use of the klue-bert-base-re. Support call klue-bert-base-re model through api, including Node.js, Python, http.

klue-bert-base-re huggingface.co Url

https://huggingface.co/ainize/klue-bert-base-re

ainize klue-bert-base-re online free

klue-bert-base-re huggingface.co is an online trial and call api platform, which integrates klue-bert-base-re's modeling effects, including api services, and provides a free online trial of klue-bert-base-re, you can try klue-bert-base-re online for free by clicking the link below.

ainize klue-bert-base-re online free url in huggingface.co:

https://huggingface.co/ainize/klue-bert-base-re

klue-bert-base-re install

klue-bert-base-re is an open source model from GitHub that offers a free installation service, and any user can find klue-bert-base-re on GitHub to install. At the same time, huggingface.co provides the effect of klue-bert-base-re install, users can directly use klue-bert-base-re installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

klue-bert-base-re install url in huggingface.co:

https://huggingface.co/ainize/klue-bert-base-re

Url of klue-bert-base-re

klue-bert-base-re huggingface.co Url

Provider of klue-bert-base-re huggingface.co

ainize
ORGANIZATIONS

Other API from ainize

huggingface.co

Total runs: 193
Run Growth: -128
Growth Rate: -66.32%
Updated:June 21 2021
huggingface.co

Total runs: 149
Run Growth: 9
Growth Rate: 6.04%
Updated:June 29 2021