eng_image imagewidth (px) 2.11k 3.34k | kh_image imagewidth (px) 2.17k 3.33k | text stringlengths 66 1.69k |
|---|---|---|
As of the end of the first quarter of 2025, Cambodia’s international investment position indicated net external liabilities of KHR 182,866 billion, increased by KHR 38,760 billion (26.9%) from KHR 144,106 billion at the end of previous quarter. Compared to the end of the same quarter last year, international investment... | ||
Secondary income credits were KHR 2,050 billion, a decrease of KHR 1,401 billion (40.6%) from KHR 3,451 billion in the previous period, as a result from declines in the other sectors by KHR 1,396 billion (45.4%) and the general government by KHR 5 billion (1.4%). Compared to the same quarter last year, secondary income... | ||
The NBC would like to thank the relevant governmental organizations and data providers for their invaluable cooperation and contributions toward the sustainability of BOP compilation as well as the publication of CBOPS Quarterly Bulletin to date. | ||
Thank you very much for your interest in CBOPS Quarterly Bulletin. | ||
In the second quarter of 2023, Cambodia’s Balance of Payments switched to a surplus of KHR 1,366 billion from a deficit of KHR 322 billion in the previous quarter due to the change from deficit to surplus on current and capital accounts when the inflow of net incurrence of liabilities decreased. Current and capital acc... | ||
The balance on goods had a deficit of KHR 8,040 billion, increased by KHR 7,191 billion (8.5 times) from a deficit of KHR 849 billion in the previous quarter, and KHR 3,761 billion (87.9%) from a deficit of KHR 4,279 billion in the same period last year. | ||
At the end of the second quarter of 2025, Cambodia’s international investment position posted net external liabilities of KHR 134,852 billion, slightly increased by KHR 141 billion (0.1%) from net external liabilities of KHR 134,710 billion at the end of the previous quarter. Year-on-Year changes, Cambodia’s net extern... | ||
This release included revisions in Current and Capital Account, International Investment Position and Gross External Debt Position by sector. | ||
As of the end of the second quarter of 2024, Cambodia’s international investment position indicated net external liabilities of KHR 145,755 billion, increased by KHR 1,218 billion (0.8%) from KHR 144,537 billion in the end of previous quarter. Compared to the end of the same quarter last year, international investment ... | ||
In the “Technical Notes”, at the end of this bulletin, there is a summary for the readers, data users and publics to get a basic understanding on the new BPM6 compilation manual including the concepts and definition, data sources, compilation methodology, and a summary of the changes between BPM5 and BPM6. | ||
For Sea Transport: Freight on imports carried by nonresident carriers is estimated by deducting freight on air imports from an estimation of freight on total imports and applying to the result of the share of nonresident shipping. Freight on exports carried by resident carriers is estimated by multiplying an average fr... | ||
In the “Technical Notes”, at the end of this bulletin, there is a summary for the readers, data users and publics to get a basic understanding on the new BPM6 compilation manual including the concepts and definition, data sources, compilation methodology, and a summary of the changes between BPM5 and BPM6. | ||
instruments such as direct investment, portfolio investment, financial derivative instruments, other investments, and reserve assets. FDI (asset) is estimated based on ITRS; while FDI (liability) is estimated based on the non-resident direct investment data of banking sector, the listed investment enterprises received ... | ||
Cambodia’s external assets were KHR 147,304 billion, increased by KHR 4,129 billion (2.9%) from KHR 143,175 billion at the end of the previous quarter. Compared to the end of the second quarter of 2023, the external assets increased by KHR 23,138 billion (18.6%) from KHR 124,165 billion. | ||
Secondary income credits were KHR 3,451 billion, an increase of KHR 28 billion (0.8%) from KHR 3,423 billion in the previous period, as a result from an increase in the other sectors by KHR 68 billion (2.3%), while the general government dropped by KHR 40 billion (9.6%). Compared to the same quarter last year, secondar... | ||
For Air Transport: Passenger fares paid by residents to nonresident airlines are estimated based on information on the number of passengers combined with data collected by the State Secretariat of Civil Aviation and the General Department of Immigration of the Ministry of Interior (MOI) on the number of resident and no... | ||
Balance on financial account registered net acquisition of financial assets of KHR 1,009 billion, switched from net incurrence of liabilities of KHR 361 billion in the previous quarter. Compared to the same quarter last year, this account switched from net incurrence of liabilities of KHR 5,798 billion. | ||
Net direct investment recorded net incurrence of liabilities of KHR 3,933 billion, increased by KHR 494 billion (14.4%) compared to net incurrence of liabilities of KHR 3,440 billion in the previous quarter, resulted mainly from an increase in foreign direct investment in Cambodia. Year-on-year changes, net incurrence ... | ||
For further information about this BOP and related statistics,
please contact the Statistics Department, Directorate General of
Policy and International Cooperation, National Bank of Cambodia
on (855) 23 722 563-1118 or by email at: statistics@nbc.gov.kh. | ||
These revisions have been made mainly due to the changes in
data sources and compilation methodologies. | ||
As of the end of the third quarter of 2024, Cambodia’s international investment position indicated net external liabilities of KHR 145,737 billion, decreased by KHR 6,762 billion (4.4%) from KHR 152,499 billion at the end of previous quarter. Compared to the end of the same quarter last year, international investment p... | ||
Foreign Direct Investment (FDI) is categorized into investment instruments such as direct investment, portfolio investment, financial derivative instruments, and other investment and reserve assets. FDI (asset) is estimated based on ITRS; while FDI (liability) is estimated from the non-resident direct investment data o... | ||
Cambodia’s external assets were KHR 135,468 billion, increased by KHR 10,239 billion (8.2%) compared to KHR 125,229 billion at the end of the previous quarter. Compared to the end of the fourth quarter of 2022, the external assets increased by KHR 21,746 billion (19.1%) from KHR 113,722 billion. | ||
In the third quarter of 2024, Cambodia’s Balance of Payments posted a surplus of KHR 287 billion compared to a deficit of KHR 174 billion in the previous quarter, due to a switch from a deficit to a surplus of current and capital account, while financial account switched from net incurrence of liabilities to net acquis... | ||
The NBC would like to thank the relevant governmental organizations and data providers for their invaluable cooperation and contributions toward the sustainability of BOP compilation as well as the publication of CBOPS Quarterly Bulletin to date. | ||
This release included revisions in the Current accounts, Financial accounts, International Investment Position table, and External Debt table. | ||
Imports of goods were KHR 31,648 billion, increased by KHR 3,004 billion (10.5%) from KHR 28,643 billion in the previous quarter. The increase in imports of goods were primarily driven by increases in imports of garment materials by KHR 1,423 billion (31.2%) vehicles KHR 363 billion (24.3%), and petroleum KHR 180 billi... | ||
The revisions on the International Investment Position table included 1/-Total assets on portfolio investment in the second quarter of 2025 and on other investment in first quarter and second quarter of 2025 and 2/-Total Liabilities on direct investment and other investment in second quarter of 2025. | ||
Cambodia’s external assets were KHR 155,825 billion, increased by KHR 4,632 billion (3,1%) from 151,193 billion in the previous quarter. Year-on-Year changes, the external assets increased by KHR 17,555 billion (12.7%) from KHR 138,269 billion. | ||
Balance on financial account registered net acquisition of financial assets of KHR 2,419 billion, switched from net incurrence of liabilities of KHR 2,062 billion in the previous quarter, and KHR 298 billion in the same period last year. | ||
In the “Technical Notes”, at the end of this bulletin, there is a summary for the readers, data users and publics to get a basic understanding on the new BPM6 compilation manual including the concepts and definition, data sources, compilation methodology, and a summary of the changes between BPM5 and BPM6. | ||
Financial account recorded net incurrence of liabilities of KHR 1,013 billion, decreased by KHR 1,070 billion compared to net incurrence of liabilities of KHR 2,083 billion in the previous quarter, primarily triggered by increasing of net acquisition of financial assets of other investment and net acquisition of financ... | ||
These statistics cover all economical transactions of economic institutional units such as general government, central bank, deposit taking institutions, other financial institutions, business enterprises, households, and non-profit institutions serving households as the residents of Cambodia with the nonresidents. All... | ||
As of the end of the fourth quarter of 2023, Cambodia’s international investment position recorded net external liabilities of KHR 156,696 billion, decreased by KHR 7,349 billion (4.5%) from KHR 164,045 billion at the end of the previous quarter, and KHR 5,146 billion (3.2%) from KHR 161,842 billion at the end of the f... | ||
Primary income debits were KHR 1,335 billion, increased by KHR 142 billion (11.9%) from KHR 1,194 billion in the previous quarter, due to an increase of KHR 177 billion (17.9%) in investment income, while compensation of employees decreased by KHR 36 billion (17.2%). Primary income debits rose by KHR 392 billion (41.6%... | ||
For further information about this BOP and related statistics,
please contact the Statistics Department, Directorate General of
Policy and International Cooperation, National Bank of Cambodia
on (855) 23 722 563-1118 or by email at: statistics@nbc.gov.kh. | ||
Cambodia’s external liabilities was KHR 288,469 billion, increased by KHR 9,831 billion (3.5%) compared to KHR 278,638 billion at the end of the previous quarter, resulted mainly from an increase in direct investment of KHR 7,882 billion (4.2%) and other investment KHR 1,949 billion (2.1%). Cambodia’s external liabilit... | ||
Capital account recorded a surplus of KHR 33 billion, decreased by KHR 15.1 million (0.1%) compared to the previous quarter. The surplus in capital account declined by KHR 96 billion (74.4%) from KHR 128 billion in the same period last year. | ||
Any discrepancies between totals and the sum of the component aggregates in this publication are due to rounding. | ||
The revisions on Current and Capital Account included Services Account (debit and credit) in the second quarter of 2024. | ||
Cambodia’s external liabilities were KHR 338,690 billion, increased by KHR 43,391 billion (14.7%) from KHR 295,299 billion at the end of the previous quarter. Cambodia’s external liabilities increased by KHR 51,007 billion (17.7%) from KHR 287,684 billion at the end of the same period last year. | ||
In the third quarter of 2025, reserve assets recorded an increase of KHR 914 billion compared to an increase of KHR 1,598 billion in the previous quarter, and an increase of KHR 288 billion in the same period last year. | ||
As of the end of the first quarter of 2024, Cambodia’s international investment position indicated net external liabilities of KHR 144,802 billion, decreased by KHR 8,143 billion (5.3%) from KHR 152,945 billion in the end of previous quarter. Compared to the end of the same quarter last year, international investment p... | ||
The revisions on the International Investment Position table included 1/-Total assets on other investment items from the second quarter of 2023 to the fourth quarter of 2024 and 2/-Total Liabilities in the fourth quarter of 2024. | ||
Freight is estimated at 9 percent of C.I.F while insurance fee is at 1 percent of C.I.F. Freight for imports and exports are apportioned among air, sea, road, and other transport means. Freight on imports carried by nonresident airlines is estimated by applying an average freight rate per ton to the quantity of imports... | ||
As of the end of the second quarter of 2023, Cambodia’s international investment position posted net external liabilities of KHR 162,416 billion, increased by KHR 5,546 billion (3.5%) from KHR 156,870 billion at the end of the first quarter of 2023, and increased by KHR 16,468 billion (11.3%) from KHR 145,948 billion a... | ||
Secondary Income (credit) is estimated based on the data from CDC and government financial statistics (GFS). In addition, workers’ remittances are estimated based on the number of Cambodian workers oversea from MLVT, the average wages estimated by countries and expertise combined with ITRS. Secondary Income (debit) is ... | ||
Financial account recorded net acquisition of financial assets of KHR 3,307 billion, switched
from net incurrence of liabilities of KHR 4,557 billion in the previous quarter, primarily
driven by a shift from net incurrence of liabilities to net acquisition of financial assets in other
investment and a decrease in net i... | ||
As of the end of the third quarter of 2025, Cambodia’s international investment position indicated net external liabilities of KHR 127,332 billion, decreased by KHR 8,146 billion (6%) from KHR 135,477 billion at the end of previous quarter. Compared to the end of the same quarter last year, international investment pos... | ||
Financial account recorded net acquisition of financial assets of KHR 5,630 billion, increased by KHR 4,657 billion (4.8 times) from KHR 973 billion in the previous quarter, primarily resulted from an increase in net acquisition of financial assets of other investment while net incurrence of liabilities of direct inves... | ||
In the “Technical Notes”, at the end of this bulletin, there is a summary for the readers, data users and publics to get a basic understanding on the new BPM6 compilation manual including the concepts and definition, data sources, compilation methodology, and a summary of the changes between BPM5 and BPM6. | ||
International Investment Positions (IIP) statistics are estimated by the same methodology in financial account, but are calculated as stock position, including exchange rate changes, price changes and other changes. Foreign Direct Investment (FDI) is categorized into investment instruments such as direct investment, po... | ||
Thank you very much for your interest in the CBOPS Quarterly Bulletin. | ||
The current account recorded a surplus of KHR 1,721 billion, shifting from a deficit of KHR 604 billion in the previous quarter and KHR 10,993 billion in the same period last year. The change from deficit to surplus on current account is mainly due to the decrease in deficit of balance on goods and primary income coupl... | ||
Secondary income debits were KHR 218 billion, a decrease of KHR 44 billion (16.8%) from KHR 262 billion in the last quarter, resulting primarily from the decreases of KHR 48 billion (92%) in general government, while other sectors increased by KHR 4 billion (1.9%). Compared to the same quarter last year, secondary inco... | ||
In the first quarter of 2024, reserve assets recorded a decrease of KHR 1.296 billion compared to a decrease of KHR 709 billion in the previous quarter, and KHR 324 billion over the same quarter last year. | ||
On behalf of the National Bank of Cambodia, I wish to thank all readers for their continued interest in and support for the CBOPS Quarterly Bulletin. | ||
National Bank of Cambodia (NBC) is pleased to introduce the 84th edition, the Second Quarter of 2024 of Cambodia's Balance of Payments Statistics (CBOPS) Bulletin, which is compiled quarterly in Khmer Riel and published by the NBC in Khmer and English. The quarterly CBOPS bulletin consists of a time series statistics o... | ||
The Balance of Payments (BOP) and International Investment Position (IIP) statistics are compiled by the External Sector Statistics Division of the Statistics Department of the National Bank of Cambodia (NBC). BOP and IIP statistics are published on a quarterly basis in local currency (in KHR billion). From the second ... | ||
Primary income debits were KHR 1,194 billion, increased by KHR 151 billion (14.5%) from KHR 1,042 billion in the previous quarter, significantly caused by an increase of KHR 149 billion (17.8%) in investment income and compensation of employees KHR 2 billion (1%). Primary income debits increased by KHR 138 billion (13.... | ||
Secondary income credits was KHR 3,493 billion, decreased by KHR 92 billion (2.6%) from KHR 3,585 billion in the last quarter, mainly resulted from the decline of KHR 55 billion (1.8%) in other sectors and KHR 37 billion (6.5%) in general government. Secondary income credits increased by KHR 182 billion (5.5%) from KHR... | ||
Imports of goods were KHR 35,744 billion, enlarged by KHR 2,310 billion (6.9%) from KHR 33,434 billion in the previous quarter. The increase in imports of goods was primarily contributed by the growth in imports of garment materials by KHR 564 billion (10.4%) and vehicles by KHR 294 billion (13.1%); while the imports o... | ||
Accordingly, the compilers of BOP and IIP data face many challenges. For instance, in the current account, the challenges include 1/- the coverage of Goods that are not passed through the custom 2/- some service items and primary income data from administrative sources are available only in semester or annual basis and... | ||
Secondary income credits were KHR 3,423 billion, a decrease of KHR 54 billion (1.6%) from KHR 3,477 billion in the previous period, as a result from a reduction in the general government KHR 49 billion (10.6%) and other sectors KHR 5 billion (0.2%). Compared to the same quarter last year, secondary income credit decrea... | ||
The NBC would like to thank the relevant governmental organizations and data providers for their invaluable cooperation and contributions toward the sustainability of BOP compilation as well as the Cambodia’s BOP Quarterly Bulletin publication to date. | ||
Freight is estimated at 9 percent of C.I.F while insurance fee is at 1 percent of C.I.F. Freight for imports and exports are apportioned among air, sea, road, and other transport means. Freight on imports carried by nonresident airlines is estimated by applying an average freight rate per ton to the quantity of imports... | ||
Thank you very much for your interest in the CBOPS Quarterly Bulletin. | ||
The NBC would like to inform that Cambodia’s Balance of Payments Statistics is compiled based on the Sixth Edition of the Balance of Payments and International Investment Position Manual (BPM6), published in 2009, by the International Monetary Fund (IMF). The NBC will continuously improve and enhance the new compilatio... | ||
In the second quarter of 2024, Cambodia’s Balance of Payments posted a deficit of KHR 771 billion compared to a deficit of KHR 1,296 billion in the previous quarter. This was mainly due to the change from net financial assets to net liabilities of financial account while the current account switch from surplus to defic... | ||
Primary income credits were KHR 598 billion, increased by KHR 186 billion (45%) from KHR 412 billion in the previous quarter, mainly contributed by the increase in investment income KHR 160 billion (53%) and compensation of employees KHR 25 billion (23.1%). Compare to the same quarter last year, primary income credits ... | ||
In the fourth quarter of 2023, Cambodia’s Balance of Payments posted a deficit of KHR 710 billion comparing to a deficit of KHR 996 billion in the previous quarter. This was mainly due to a switch in financial accounts from net incurrence of liabilities to net acquisition of financial assets while the current and capit... | ||
Cambodia’s external liabilities were KHR 295,114 billion, increased by KHR 1,956 billion (0.7%) from KHR 293,158 billion at the end of the previous quarter. Cambodia’s external liabilities increased by KHR 7,033 billion (2.4%) from KHR 288,080 billion at the end of the same period last year. | ||
At the end of the fourth quarter of 2024, Cambodia’s international investment position posted net external liabilities of KHR 144,335 billion, increased by KHR 210 billion (0.1%) from net external liabilities of KHR 144,124 billion at the end of the third quarter of 2024, and declined by KHR 8,689 billion (5.7%) from n... | ||
The Balance of Payments (BOP) and International Investment Position (IIP) statistics are compiled by the Balance of Payments Statistics Division of the Statistics Department of the National Bank of Cambodia (NBC). BOP and IIP statistics are published on a quarterly basis in local currency (in KHM billion). From the sec... | ||
The NBC would like to inform that Cambodia’s Balance of Payments Statistics is compiled based on the Sixth Edition of the Balance of Payments and International Investment Position Manual (BPM6), published in 2009, by the International Monetary Fund (IMF). The NBC will continuously improve and enhance the new compilatio... | ||
other investments, and reserve assets. FDI (asset) is estimated based on ITRS; while FDI (liability) is estimated based on the non-resident direct investment data of banking sector, the listed investment enterprises received a preferential system from CDC. The investment of other investment enterprises is estimated bas... | ||
These statistics cover all economical transactions of economic institutional units such as general government, central bank, deposit taking institutions, other financial institutions, business enterprises, households, and non-profit institutions serving households as the residents of Cambodia with the nonresidents. All... | ||
Any discrepancies between totals and the sum of the component aggregates in this publication are due to rounding. | ||
Thank you very much for your interest in the CBOPS Quarterly Bulletin. | ||
In the first quarter of 2024, Cambodia’s Balance of Payments posted a deficit of KHR 1,296 billion compared to a deficit of KHR 709 billion in the previous quarter. This was mainly due to an increase in net acquisition of financial assets of the financial account while the current and capital accounts switched from def... | ||
National Bank of Cambodia (NBC) is pleased to introduce the 81st edition, the Third Quarter of 2023 of Cambodia's Balance of Payments Statistics (CBOPS) Bulletin, which is compiled quarterly in Khmer Riel and published by the NBC in Khmer and English. The quarterly CBOPS bulletin consists of a time series statistics on... | ||
Primary income accounts include compensation of employees, and investment income followed by financial instruments such as direct investment, portfolio investment, other investments, and reserve assets. Compensation of employees (credit) is estimated based on the data on the number of foreign workers from the Ministry ... | ||
National Bank of Cambodia (NBC) is pleased to introduce the 85th edition, the Third Quarter of 2024 of Cambodia's Balance of Payments Statistics (CBOPS) Bulletin, which is compiled quarterly in Khmer Riel and published by the NBC in Khmer and English. The quarterly CBOPS bulletin consists of a time series statistics on... | ||
For further information about this BOP and related statistics,
please contact the Statistics Department, Directorate General of
Policy and International Cooperation, National Bank of Cambodia
on (855) 23 722 563-1118 or by email at: statistics@nbc.gov.kh. | ||
The revisions on the Current and Capital accounts included 1/- Services account in travel services (debit and credit) in the third quarter of 2024, and Government and goods and services n.i.e. (creit and debit) from the first quarter to the third quarter of 2024, and 2/-Secondary income account, General Government and ... | ||
This release included revisions in Current Account and Financial Account. | ||
The revisions on the Current and Capital accounts on services
account in government goods and services n.i.e. (credit) in the
fourth quarter of 2024. | ||
The external debt is estimated based on the data from MEF, NBC and banks. In addition, the external debt for the private sector, except the banking sector, is not available and a regular survey to compile this data is not feasible. | ||
The current account registered a deficit of KHR 2,342 billion, switched from a surplus of KHR 1,888 billion in the previous quarter, and a surplus of KHR 1,716 billion in the same quarter last year. This change resulted from an increase in the deficit of balance on goods and the decrease in the surplus of service accou... | ||
For Travel (credit): Income from travel (credit) is estimated according to the type of travelers such as tourists, business travelers, diplomats, and gamblers. Information on the number of arrivals such as business travelers, diplomats, gamblers, length of stay and the average cost per traveler are collected from the M... | ||
The external debt is estimated based on the data from MEF, NBC and banks. In addition, the external debt for the private sector, except the banking sector, is not available and a regular survey to compile this data is not feasible. | ||
Thank you very much for your interest in CBOPS Quarterly Bulletin. | ||
The official debt forgiveness data is estimated based on the data collected from the Department of Debt Management of the General Department of International Cooperation and Debt Management of MEF. Private sector debt forgiveness data is not available yet. Other capital transfer data is estimated based on the data coll... | ||
For Air Transport: Passenger fares paid by residents to nonresident airlines are estimated based on information on the number of passengers combined with data collected by the State Secretariat of Civil Aviation and the General Department of Immigration of the Ministry of Interior (MOI) on the number of resident and no... | ||
This release included revisions in Financial Account, International Investment Position and Gross External Debt Position by sector. | ||
The revisions on the International Investment Position table included 1/-Total assets on other investment items from the first quarter of 2023 to the first quarter of 2024 and the third quarter of 2024 and 2/-Total Liabilities on direct investment from the first quarter to the third quarter of 2024 and other investment... | ||
The Balance of Payments (BOP) and International Investment Position (IIP) statistics are compiled by the External Sector Statistics Division of the Statistics Department of the National Bank of Cambodia (NBC). BOP and IIP statistics are published on a quarterly basis in local currency (in KHR billion). From the second ... | ||
In the “Technical Notes”, at the end of this bulletin, there is a summary for the readers, data users and publics to get a basic understanding on the new BPM6 compilation manual including the concepts and definition, data sources, compilation methodology, and a summary of the changes between BPM5 and BPM6. | ||
This release included revisions in the Current and Capital
accounts, Financial accounts, International Investment Position
table, and External Debt table. | ||
Net direct investment recorded net incurrence of liabilities of KHR 3,916 billion, decreased by KHR 18 billion (0.5%) compared to net incurrence of liabilities of KHR 3,933 billion in the previous quarter, resulted mainly from the decrease in foreign direct investment in Cambodia being faster than the direct investment... |
Machine Translation Dataset: Khmer to English
A machine translation dataset project that pairs Khmer document images with their corresponding English translations. This dataset is designed for training machine translation models to convert Khmer text (via OCR from images) to English text.
Project Overview
This project processes bilingual documents from BOP (Bank of PNG) Bulletins, creating a Khmer-English machine translation dataset. Each sample pairs a Khmer image (source) with its English text translation (target). The dataset is automatically split into training (80%) and testing (20%) sets for model development and evaluation.
Purpose: Build a machine translation model that takes Khmer document images as input and outputs English translation text.
Project Structure
./
├── data/ # Generated dataset
│ ├── image_pairs_train.parquet # Training (80%)
│ └── image_pairs_test.parquet # Test (20%)
└── README.md # This file
Features
- Image-Text Pairing: Matches Khmer images with English translations
- Bilingual Documents: Sources from official Bank of PNG bulletins
- Automatic Splitting: 80/20 train-test split for ML model training
- Data Validation: Ensures image integrity and proper pairing
- Efficient Format: Saves in Parquet for fast loading and processing
- Batch Processing: Handles multiple document folders automatically
Installation
Requirements
- Python 3.7+
- pandas
- scikit-learn
- Pillow (PIL)
- pyarrow
Setup
pip install pandas scikit-learn pillow pyarrow
Usage
Processing and Creating Dataset
Run the Jupyter notebook match_and_save_pairs.ipynb to:
- Match Khmer images with English translations
- Validate image quality and data integrity
- Automatically split into train (80%) and test (20%)
- Save to Parquet files in
data/folder
Loading Dataset for Machine Translation
import pandas as pd
from PIL import Image
from io import BytesIO
# Load training dataset
df_train = pd.read_parquet("./data/image_pairs_train.parquet")
# Load test dataset
df_test = pd.read_parquet("./data/image_pairs_test.parquet")
# Access a sample
khmer_image_bytes = df_train.iloc[0]['kh_image']['bytes']
english_translation = df_train.iloc[0]['eng_image']['bytes']
# Convert Khmer image bytes to PIL Image for viewing
khmer_image = Image.open(BytesIO(khmer_image_bytes))
khmer_image.show()
print("English Translation:", english_translation)
Dataset Structure for ML Models
Each training sample contains:
- Input: Khmer document image (source - contains Khmer text to be translated)
- Output: English translation text (target - expected translation result)
Ideal for:
- OCR + Translation: Extract Khmer text from image, then translate to English
- Image-to-Text Translation: Direct visual machine translation
- Vision-Language Models: Multi-modal translation systems
Dataset Format
Each sample in the Parquet files is structured for machine translation:
{
'kh_image': {'bytes': <khmer_image_bytes>}, # Input: Khmer document image
'eng_image': {'bytes': <english_text_bytes>} # Output: English translation
}
- image_pairs_train.parquet: 80% of samples (training set)
- image_pairs_test.parquet: 20% of samples (test set)
Data Characteristics
- Input (kh_image): Raw image bytes of Khmer documents from BOP bulletins
- Output (eng_image): Corresponding English text translation
- Format: Binary Parquet files for efficient storage and loading
- Total Samples: Matched pairs split 80/20 for train/test
License
License: Kao Vichet (Custom License)
Data Source
Source: NBC (National Bank of Cambodia)
The image data is sourced from Bank of PNG official bulletins and publications provided by the National Bank of Cambodia.
Author
- Kao Vichet
- Project: Machine Translation Eng-Kh
Last Updated: March 2026
- Downloads last month
- 22