--- language: tr tags: - roberta - language-model - scientific - turkish license: mit model_author: Serdar ÇAĞLAR --- 🇹🇷 # Roberta-Based Language Model Trained on Turkish Scientific Article Abstracts This model is a powerful natural language processing model trained on Turkish scientific article abstracts. It focuses on scientific content in the Turkish language and excels in tasks related to text comprehension. The model can be used for understanding scientific texts, summarization, and various other natural language processing tasks. Model is cased ## Model Details - **Data Source**: This model is trained on a custom dataset consisting of Turkish scientific article summaries. The data was collected using web scraping methods from various sources in Turkey, including databases like "trdizin," "yöktez," and "türkiyeklinikleri." - **Dataset Preprocessing**: The data underwent preprocessing to facilitate better learning. Texts were segmented into sentences, and improperly divided sentences were cleaned. The texts were processed meticulously. - **Tokenizer**: The model utilizes a BPE (Byte Pair Encoding) tokenizer to process the data effectively, breaking down the text into subword tokens. - **Training Details**: The model was trained on a large dataset of Turkish sentences. The training spanned 10 epochs 5M Steps, totaling 240 hours, and the model was built from scratch. No fine-tuning was applied. ## Usage Load transformers library with: ```python from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("serdarcaglar/roberta-base-turkish-scientific-abstract") model = AutoModelForMaskedLM.from_pretrained("serdarcaglar/roberta-base-turkish-scientific-abstract") ``` # Fill Mask Usage ```python from transformers import pipeline fill_mask = pipeline( "fill-mask", model="burakaytan/roberta-base-turkish-uncased", tokenizer="burakaytan/roberta-base-turkish-uncased" ) fill_mask("İnterarteriyel seyirli anormal arter hastaları ne zaman ameliyat edilmeli ve hangi cerrahi teknik kullanılmalıdır?") [{'score': 0.47466886043548584, 'token': 6252, 'token_str': ' koroner', 'sequence': 'İnterarteriyel seyirli anormal koroner arter hastaları ne zaman ameliyat edilmeli ve hangi cerrahi teknik kullanılmalıdır?'}, {'score': 0.10102332383394241, 'token': 16407, 'token_str': ' uterin', 'sequence': 'İnterarteriyel seyirli anormal uterin arter hastaları ne zaman ameliyat edilmeli ve hangi cerrahi teknik kullanılmalıdır?'}, {'score': 0.07669707387685776, 'token': 9978, 'token_str': ' pulmoner', 'sequence': 'İnterarteriyel seyirli anormal pulmoner arter hastaları ne zaman ameliyat edilmeli ve hangi cerrahi teknik kullanılmalıdır?'}, {'score': 0.03238440677523613, 'token': 16284, 'token_str': ' serebral', 'sequence': 'İnterarteriyel seyirli anormal serebral arter hastaları ne zaman ameliyat edilmeli ve hangi cerrahi teknik kullanılmalıdır?'}, {'score': 0.018826927989721298, 'token': 12969, 'token_str': ' renal', 'sequence': 'İnterarteriyel seyirli anormal renal arter hastaları ne zaman ameliyat edilmeli ve hangi cerrahi teknik kullanılmalıdır?'}] ``` ## Disclaimer The use of this model is subject to compliance with specific copyright and legal regulations, which are the responsibility of the users. The model owner or provider cannot be held liable for any issues arising from the use of the model. [Serdar ÇAĞLAR](https://www.linkedin.com/in/serdarildercaglar/).