Skip to content

Commit

Permalink
edit 'texts' to 'text' key (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhdanfadh authored Mar 13, 2024
1 parent b57ca66 commit 7d7529c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions seacrowd/sea_datasets/fsl_105/fsl_105.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _info(self) -> datasets.DatasetInfo:
{
"id": datasets.Value("string"),
"video_path": datasets.Value("string"),
"texts": datasets.Value("string"),
"text": datasets.Value("string"),
"labels": datasets.ClassLabel(names=self.category),
"metadata": {
"resolution": {
Expand Down Expand Up @@ -164,7 +164,7 @@ def _generate_examples(self, filepath: Path, split: str) -> Tuple[int, Dict]:
yield key, {
"id": str(key),
"video_path": os.path.join(filepath["clips"], example["vid_path"]),
"texts": example["label"],
"text": example["label"],
"labels": example["category"],
"metadata": {
"resolution": {
Expand All @@ -179,7 +179,7 @@ def _generate_examples(self, filepath: Path, split: str) -> Tuple[int, Dict]:
yield key, {
"id": str(key),
"video_path": os.path.join(filepath["clips"], example["vid_path"]),
"texts": example["label"],
"text": example["label"],
"metadata": {
"resolution": {
"width": vid_width,
Expand Down
2 changes: 1 addition & 1 deletion seacrowd/sea_datasets/id_msvd/id_msvd.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _generate_examples(self, text_path: Path, video_path: Path, split: str) -> T
yield i, {
"id": str(i),
"video_path": str(row["video_path"]),
"texts": row["text"],
"text": row["text"],
"metadata": {
"resolution": {
"width": None,
Expand Down
2 changes: 1 addition & 1 deletion seacrowd/utils/schemas/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{
"id": datasets.Value("string"),
"video_path": datasets.Value("string"),
"texts": datasets.Value("string"),
"text": datasets.Value("string"),
"metadata": {
"resolution": {
"width": datasets.Value("int64"),
Expand Down

0 comments on commit 7d7529c

Please sign in to comment.