-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify __init__ files, remove some unused code (#52)
- Loading branch information
1 parent
e6ef35e
commit c74e495
Showing
12 changed files
with
10 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1 @@ | ||
import eole.inputters | ||
import eole.encoders | ||
import eole.decoders | ||
import eole.models | ||
import eole.utils | ||
import eole.modules | ||
import sys | ||
import eole.utils.optimizers | ||
|
||
eole.utils.optimizers.Optim = eole.utils.optimizers.Optimizer | ||
sys.modules["eole.Optim"] = eole.utils.optimizers | ||
|
||
# For Flake | ||
__all__ = [ | ||
eole.inputters, | ||
eole.encoders, | ||
eole.decoders, | ||
eole.models, | ||
eole.utils, | ||
eole.modules, | ||
] | ||
|
||
__version__ = "3.5.1" | ||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +0,0 @@ | ||
"""Module defining inputters. | ||
Inputters implement the logic of transforming raw data to vectorized inputs, | ||
e.g., from a line of text to a sequence of vectors. | ||
""" | ||
from eole.inputters.inputter import build_vocab | ||
from eole.inputters.text_utils import ( | ||
text_sort_key, | ||
transform_bucket, | ||
numericalize, | ||
tensorify, | ||
) | ||
from eole.inputters.text_corpus import ParallelCorpus, ParallelCorpusIterator | ||
from eole.inputters.dynamic_iterator import ( | ||
MixingStrategy, | ||
SequentialMixer, | ||
WeightedMixer, | ||
DynamicDatasetIter, | ||
) | ||
|
||
|
||
__all__ = [ | ||
"build_vocab", | ||
"text_sort_key", | ||
"transform_bucket", | ||
"numericalize", | ||
"tensorify", | ||
"ParallelCorpus", | ||
"ParallelCorpusIterator", | ||
"MixingStrategy", | ||
"SequentialMixer", | ||
"WeightedMixer", | ||
"DynamicDatasetIter", | ||
] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +0,0 @@ | ||
"""Module defining models.""" | ||
from eole.models.model_saver import build_model_saver | ||
from eole.models.model import ( | ||
BaseModel, | ||
EncoderDecoderModel, | ||
DecoderModel, | ||
EncoderModel, | ||
get_model_class, | ||
) | ||
|
||
__all__ = [ | ||
"build_model_saver", | ||
"BaseModel", | ||
"EncoderDecoderModel", | ||
"DecoderModel", | ||
"EncoderModel", | ||
"get_model_class", | ||
] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters