Skip to content

Commit

Permalink
Rename old datasets interface
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Oct 24, 2022
1 parent 8f652b9 commit 000ee8d
Show file tree
Hide file tree
Showing 20 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions datasets_old_2022_10/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This was an initial try to define a common interface for datasets.
We decided to go with a new interface, see [#231](https://github.com/rwth-i6/returnn_common/issues/231).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_train_dataset(self) -> Dict[str, Any]:

def get_eval_datasets(self) -> Dict[str, Dict[str, Any]]:
"""
Get eval datasets
Get eval datasets_old_2022_10
"""
return {
"dev": self.get_dataset("dev", train=False, subset=3000),
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_train_dataset(self) -> Dict[str, Any]:

def get_eval_datasets(self) -> Dict[str, Dict[str, Any]]:
"""
Get eval datasets
Get eval datasets_old_2022_10
"""
return {
"dev": self.get_dataset("dev"),
Expand All @@ -72,7 +72,7 @@ def get_main_dataset(self) -> Dict[str]:

def get_dataset(self, key, subset=None):
"""
Get datasets
Get datasets_old_2022_10
"""
assert key in {"train", "dev"}
assert not subset
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion nn_raw/lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Language model functions.
"""

from ..datasets.interface import VocabConfig
from ..datasets_old_2022_10.interface import VocabConfig
from typing import Dict, Any


Expand Down
2 changes: 1 addition & 1 deletion nn_raw/transducer/transducer_fullsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
from .recomb_recog import targetb_recomb_recog
from .loss import rnnt_loss, rnnt_loss_out_type
from ..collect_out_str import make_out_str_func
from ...datasets.interface import TargetConfig
from ...datasets_old_2022_10.interface import TargetConfig


class Context:
Expand Down

0 comments on commit 000ee8d

Please sign in to comment.