File size: 1,591 Bytes
b06cbbc
 
 
 
 
 
 
 
30dc6ea
2385330
30dc6ea
b06cbbc
2385330
b06cbbc
2385330
 
b06cbbc
 
 
30dc6ea
 
b06cbbc
 
ead17d5
 
 
 
 
 
 
 
 
 
11885a2
 
 
 
ea78e49
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
dataset_info:
  features:
  - name: English
    dtype: string
  - name: Russian
    dtype: string
  splits:
  - name: train
    num_bytes: 372104
    num_examples: 1607
  - name: eval
    num_bytes: 19356
    num_examples: 100
  download_size: 206613
  dataset_size: 391460
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: eval
    path: data/eval-*
license: mit
task_categories:
- translation
language:
- ru
- en
tags:
- programming
- tech
- php
- parallel-corpora
- bert
size_categories:
- 1K<n<10K
---

# OPUS PHP (ru-en) Parallel Corpora

The dataset contains parallel corpora, featuring pairs in Russian and English.

Initially, the original [OPUS PHP v1 (en&ru)](https://opus.nlpl.eu/PHP/en&ru/v1/PHP) dataset was intended to be used for training the [enbeddrus](https://github.com/EvilFreelancer/enbeddrus) project. However, due to its poor quality and high level of noise, it was decided to use only the English corpus from this dataset. The English text was then automatically translated using [LibreTranslate](https://libretranslate.com/), followed by manual translation and quality improvement using [Google Translate](https://translate.google.ru/).

Thus, the entire dataset was reviewed by the author of this project.

Subsequently, all lines shorter than 15 characters were removed, and lines such as "Example 1. function_name()" were manually deleted. Additionally, all duplicate lines, such as untranslated code samples, were removed. As a result, the original OPUS PHP v1 dataset was reduced from ~2k lines to ~1.6k lines.