-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR is the first step of a code refactoring
- Loading branch information
Showing
78 changed files
with
6,059 additions
and
1,720 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
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 was deleted.
Oops, something went wrong.
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,11 +1,4 @@ | ||
import onmt.io | ||
import onmt.Models | ||
import onmt.Loss | ||
import onmt.translate | ||
import onmt.opts | ||
from onmt.Trainer import Trainer, Statistics | ||
from onmt.Optim import Optim | ||
""" Main entry point of the ONMT library """ | ||
from onmt.trainer import Trainer | ||
|
||
# For flake8 compatibility | ||
__all__ = [onmt.Loss, onmt.Models, onmt.opts, | ||
Trainer, Optim, Statistics, onmt.io, onmt.translate] | ||
__all__ = ["Trainer"] |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Module defining decoders.""" |
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
Oops, something went wrong.