From 2f0a72989b48f31abe1957bebb159274b3682e9f Mon Sep 17 00:00:00 2001 From: Holy Lovenia Date: Wed, 3 Apr 2024 13:21:52 +0800 Subject: [PATCH] Update nusaparagraph_emot.py --- .../sea_datasets/nusaparagraph_emot/nusaparagraph_emot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seacrowd/sea_datasets/nusaparagraph_emot/nusaparagraph_emot.py b/seacrowd/sea_datasets/nusaparagraph_emot/nusaparagraph_emot.py index c1782487f..068508998 100644 --- a/seacrowd/sea_datasets/nusaparagraph_emot/nusaparagraph_emot.py +++ b/seacrowd/sea_datasets/nusaparagraph_emot/nusaparagraph_emot.py @@ -11,7 +11,7 @@ _SOURCE_VIEW_NAME = DEFAULT_SOURCE_VIEW_NAME _UNIFIED_VIEW_NAME = DEFAULT_SEACROWD_VIEW_NAME _LANGUAGES = [ - "btk", "bew", "bug", "jav", "mad", "mak", "min", "mui", "rej", "sun" + "btx", "bew", "bug", "jav", "mad", "mak", "min", "mui", "rej", "sun" ] # We follow ISO639-3 language code (https://iso639-3.sil.org/code_tables/639/data) _CITATION = """\ @unpublished{anonymous2023nusawrites:, @@ -66,7 +66,7 @@ def seacrowd_config_constructor(lang, schema, version): subset_id="nusaparagraph_emot", ) LANGUAGES_MAP = { - "btk": "batak", + "btx": "batak", "bew": "betawi", "bug": "buginese", "jav": "javanese", @@ -167,4 +167,4 @@ def _generate_examples(self, filepath: Path) -> Tuple[int, Dict]: df = pd.read_csv(filepath).reset_index() for row in df.itertuples(): ex = {"id": str(row.id), "text": row.text, "label": row.label} - yield row.id, ex \ No newline at end of file + yield row.id, ex