This repository provides a collection of Turkish Sentiment Analysis Datasets from 2012 to 2022, covering various domains. It includes access links for publicly available datasets and contact information for non-public datasets. It also includes a Python script for sentiment analysis using pre-trained transformer models.
A thorough investigation was carried out on research papers related to 'sentiment analysis' and 'Turkish dataset' indexed on Scopus between 2012 and 2022. 23 unique datasets were collected from publicly available sources and through email requests. This repository provides links to the publicly available Turkish datasets, as well as contact information for those that are not publicly available.
- Search Query:
'sentiment analysis' AND 'Turkish dataset'
- Fields: Article Title, Abstract, Keywords
- Date Range: 2012–2022
- Database: Scopus
The repository provides:
- Links to publicly available datasets.
- Contact Information for datasets not openly accessible.
- Clone this repository:
git clone https://github.com/sevvalckc/Turkish-SAD.git cd Turkish-SAD
- Install required libraries: pip install -r requirements.txt
- Ensure your datasets (e.g., data1.csv, data2.csv) are placed in the same directory as the script.
- Run the script: python sentiment_analysis.py
- The script will output sentiment analysis results to CSV files for each model.
The script requires the following Python libraries and versions:
- Pandas version: 2.2.2
- PyTorch version: 2.5.1+cu121
- Transformers version: 4.46.2
- Scipy version: 1.13.1
To install all required libraries, run: pip install -r requirements.txt sv) for each model.
TurkishBERTweet: VRLLab/TurkishBERTweet-Lora-SA TSAM: emre/turkish-sentiment-analysis BERTurk: akoksal/bounti XLM-T: cardiffnlp/twitter-xlm-roberta-base-sentiment
Enabling TPU and High RAM
To use this script on Google Colab with TPU and high RAM, follow these steps:
- Open Google Colab: Go to Google Colab.
- Upload the script: Upload sentiment_analysis.py and your datasets (data1.csv, data2.csv) to Colab.
Enable TPU:
Go to Runtime > Change runtime type. Select TPU from the Hardware accelerator dropdown menu. Enable High RAM:
Go to Runtime > Manage sessions. Click on the current session. Select High-RAM from the options available.