Electrotubbie's picture
Update README.md
db1a67c verified
metadata
task_categories:
  - text-classification
language:
  - ba
  - kk
  - ky
size_categories:
  - 100K<n<1M

Description

A dataset with texts and the categories to which these texts belong.

Usage

This dataset can be used to check language models for the correct classification of texts by category.

Dataset structure:

  • lang: the language to which the text source belongs;
  • title: the title of the text;
  • original_text: original text taken from a web page;
  • processed_text: processed text using preprocessing functions;
  • category: the category to which the text belongs;
  • processed: flag indicating that one or more sentence has been deleted from the text;
  • url: link to the source;
  • date: date of publication of the text;

The creation process

This dataset was obtained by parsing news resources of countries and regions of native speakers of Turkic languages, such as Bashkir, Kazakh and Kyrgyz. During parsing, it was a priori believed that the language of the articles was written in the language of the region about which the news was written. After parsing, the text of the articles was processed through the preprocessing functions described on github.

The scheme of text preprocessing and validation is as follows:

  • cleaning the text from unnecessary constructions using regular expressions;
  • splitting text into sentences using the sentenize function of the razdel module;
  • making predictions for each sentence using the lid.176.bin model, as well as the fasttext module;
  • deleting sentences written in non-Turkic languages;
  • combining valid sentences into text and getting the processed_text column.