ytu-ce-cosmos / turkish-tiny-bert-uncased

huggingface.co
Total runs: 172
24-hour runs: 9
7-day runs: 23
30-day runs: 73
Model's Last Updated: December 27 2023
fill-mask

Introduction of turkish-tiny-bert-uncased

Model Details of turkish-tiny-bert-uncased

turkish-tiny-bert-uncased

This is a Turkish Tiny uncased BERT model, developed to fill the gap for small-sized BERT models for Turkish. Since this model is uncased: it does not make a difference between turkish and Turkish.

⚠ Uncased use requires manual lowercase conversion

Don't use the do_lower_case = True flag with the tokenizer. Instead, convert your text to lower case as follows:

text.replace("I", "ı").lower()

This is due to a known issue with the tokenizer.

Be aware that this model may exhibit biased predictions as it was trained primarily on crawled data, which inherently can contain various biases.

Other relevant information can be found in the paper .

Example Usage
from transformers import AutoTokenizer, BertForMaskedLM
from transformers import pipeline

model = BertForMaskedLM.from_pretrained("ytu-ce-cosmos/turkish-tiny-bert-uncased")
# or
# model = BertForMaskedLM.from_pretrained("ytu-ce-cosmos/turkish-tiny-bert-uncased", from_tf = True)

tokenizer = AutoTokenizer.from_pretrained("ytu-ce-cosmos/turkish-tiny-bert-uncased")

unmasker = pipeline('fill-mask', model=model, tokenizer=tokenizer)
unmasker("gelirken bir litre [MASK] aldım.")
# [{'score': 0.202457457780838,
#   'token': 2417,
#   'token_str': 'su',
#   'sequence': 'gelirken bir litre su aldım.'},
#  {'score': 0.09290537238121033,
#   'token': 11818,
#   'token_str': 'benzin',
#   'sequence': 'gelirken bir litre benzin aldım.'},
#  {'score': 0.07785643637180328,
#   'token': 2026,
#   'token_str': '##den',
#   'sequence': 'gelirken bir litreden aldım.'},
#  {'score': 0.06889808923006058,
#   'token': 2299,
#   'token_str': '##yi',
#   'sequence': 'gelirken bir litreyi aldım.'},
#  {'score': 0.03152570128440857,
#   'token': 2647,
#   'token_str': '##ye',
#   'sequence': 'gelirken bir litreye aldım.'}]

Acknowledgments

  • Research supported with Cloud TPUs from Google's TensorFlow Research Cloud (TFRC). Thanks for providing access to the TFRC ❤️
  • Thanks to the generous support from the Hugging Face team, it is possible to download models from their S3 storage 🤗

Citations

@article{kesgin2023developing,
  title={Developing and Evaluating Tiny to Medium-Sized Turkish BERT Models},
  author={Kesgin, Himmet Toprak and Yuce, Muzaffer Kaan and Amasyali, Mehmet Fatih},
  journal={arXiv preprint arXiv:2307.14134},
  year={2023}
}

License

MIT

Runs of ytu-ce-cosmos turkish-tiny-bert-uncased on huggingface.co

172
Total runs
9
24-hour runs
9
3-day runs
23
7-day runs
73
30-day runs

More Information About turkish-tiny-bert-uncased huggingface.co Model

More turkish-tiny-bert-uncased license Visit here:

https://choosealicense.com/licenses/mit

turkish-tiny-bert-uncased huggingface.co

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

turkish-tiny-bert-uncased huggingface.co Url

https://huggingface.co/ytu-ce-cosmos/turkish-tiny-bert-uncased

ytu-ce-cosmos turkish-tiny-bert-uncased online free

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

ytu-ce-cosmos turkish-tiny-bert-uncased online free url in huggingface.co:

https://huggingface.co/ytu-ce-cosmos/turkish-tiny-bert-uncased

turkish-tiny-bert-uncased install

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

turkish-tiny-bert-uncased install url in huggingface.co:

https://huggingface.co/ytu-ce-cosmos/turkish-tiny-bert-uncased

Url of turkish-tiny-bert-uncased

turkish-tiny-bert-uncased huggingface.co Url

Provider of turkish-tiny-bert-uncased huggingface.co

ytu-ce-cosmos
ORGANIZATIONS

Other API from ytu-ce-cosmos

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 02 2024