Skip to content

Commit

Permalink
bug fix & fix compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelCahyawijaya committed Aug 27, 2022
1 parent daf62e3 commit ae3b95b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nusantara/nusa_datasets/titml_idn/titml_idn.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _info(self):
homepage=_HOMEPAGE,
license=_LICENSE,
citation=_CITATION,
task_templates=[datasets.AutomaticSpeechRecognition(audio_file_path_column="audio", transcription_column="text")],
task_templates=[datasets.AutomaticSpeechRecognition(audio_column="audio", transcription_column="text")],
)

def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
Expand Down
2 changes: 1 addition & 1 deletion nusantara/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from collections import defaultdict
from nusantara.utils.schemas import (
kb_features, qa_features, text2text_features, text_features,
text_multi_features, pairs_features, seq_label_features,
text_multi_features, pairs_features, pairs_features_score, seq_label_features,
ssp_features, speech_text_features, image_text_features
)

Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ bioc==1.3.7
pandas==1.3.3
numpy>=1.22
pybrat==0.1.4
datasets==2.0.0
datasets==2.2.0
black~=22.0
flake8>=3.8.3
isort>=5.0.0
Expand All @@ -12,4 +12,5 @@ pre-commit==2.19.0
soundfile
librosa
jsonlines>=3.1.0
nltk
nltk
soundfile
1 change: 0 additions & 1 deletion tests/test_nusantara.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from datasets import DatasetDict, Features
from nusantara.utils.constants import Tasks, TASK_TO_SCHEMA, VALID_TASKS, VALID_SCHEMAS, SCHEMA_TO_FEATURES, TASK_TO_FEATURES
from nusantara.utils.schemas import kb_features, pairs_features, pairs_features_score, qa_features, text2text_features, text_features, text_multi_features, seq_label_features, ssp_features, speech_text_features, image_text_features
(pairs_score); Remove redundancy for ImageText (imtext) schema; Modify TITML-IDN to use sptext schema;)

sys.path.append(str(Path(__file__).parent.parent))

Expand Down

0 comments on commit ae3b95b

Please sign in to comment.