monologg / koelectra-base-v3-discriminator

huggingface.co
Total runs: 13.3K
24-hour runs: 1.1K
7-day runs: 484
30-day runs: 2.5K
Model's Last Updated: October 21 2021

Introduction of koelectra-base-v3-discriminator

Model Details of koelectra-base-v3-discriminator

KoELECTRA v3 (Base Discriminator)

Pretrained ELECTRA Language Model for Korean ( koelectra-base-v3-discriminator )

For more detail, please see original repository .

Usage
Load model and tokenizer
>>> from transformers import ElectraModel, ElectraTokenizer

>>> model = ElectraModel.from_pretrained("monologg/koelectra-base-v3-discriminator")
>>> tokenizer = ElectraTokenizer.from_pretrained("monologg/koelectra-base-v3-discriminator")
Tokenizer example
>>> from transformers import ElectraTokenizer
>>> tokenizer = ElectraTokenizer.from_pretrained("monologg/koelectra-base-v3-discriminator")
>>> tokenizer.tokenize("[CLS] 한국어 ELECTRA를 공유합니다. [SEP]")
['[CLS]', '한국어', 'EL', '##EC', '##TRA', '##를', '공유', '##합니다', '.', '[SEP]']
>>> tokenizer.convert_tokens_to_ids(['[CLS]', '한국어', 'EL', '##EC', '##TRA', '##를', '공유', '##합니다', '.', '[SEP]'])
[2, 11229, 29173, 13352, 25541, 4110, 7824, 17788, 18, 3]
Example using ElectraForPreTraining
import torch
from transformers import ElectraForPreTraining, ElectraTokenizer

discriminator = ElectraForPreTraining.from_pretrained("monologg/koelectra-base-v3-discriminator")
tokenizer = ElectraTokenizer.from_pretrained("monologg/koelectra-base-v3-discriminator")

sentence = "나는 방금 밥을 먹었다."
fake_sentence = "나는 내일 밥을 먹었다."

fake_tokens = tokenizer.tokenize(fake_sentence)
fake_inputs = tokenizer.encode(fake_sentence, return_tensors="pt")

discriminator_outputs = discriminator(fake_inputs)
predictions = torch.round((torch.sign(discriminator_outputs[0]) + 1) / 2)

print(list(zip(fake_tokens, predictions.tolist()[1:-1])))

Runs of monologg koelectra-base-v3-discriminator on huggingface.co

13.3K
Total runs
1.1K
24-hour runs
575
3-day runs
484
7-day runs
2.5K
30-day runs

More Information About koelectra-base-v3-discriminator huggingface.co Model

More koelectra-base-v3-discriminator license Visit here:

https://choosealicense.com/licenses/apache-2.0

koelectra-base-v3-discriminator huggingface.co

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

koelectra-base-v3-discriminator huggingface.co Url

https://huggingface.co/monologg/koelectra-base-v3-discriminator

monologg koelectra-base-v3-discriminator online free

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

monologg koelectra-base-v3-discriminator online free url in huggingface.co:

https://huggingface.co/monologg/koelectra-base-v3-discriminator

koelectra-base-v3-discriminator install

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

koelectra-base-v3-discriminator install url in huggingface.co:

https://huggingface.co/monologg/koelectra-base-v3-discriminator

Url of koelectra-base-v3-discriminator

koelectra-base-v3-discriminator huggingface.co Url

Provider of koelectra-base-v3-discriminator huggingface.co

monologg
ORGANIZATIONS

Other API from monologg

huggingface.co

Total runs: 130.5K
Run Growth: -101.0K
Growth Rate: -77.37%
Updated: August 21 2024
huggingface.co

Total runs: 991
Run Growth: -819
Growth Rate: -82.64%
Updated: August 21 2024
huggingface.co

Total runs: 136
Run Growth: 105
Growth Rate: 77.21%
Updated: August 21 2024