-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add argument to SequenceToSequence models to share embeddings (#195)
Start by supporting simple source and target sharing.
- Loading branch information
1 parent
214af26
commit 05e7295
Showing
4 changed files
with
69 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""Module defining models.""" | ||
|
||
from opennmt.models.transformer import Transformer | ||
from opennmt.models.sequence_to_sequence import SequenceToSequence | ||
from opennmt.models.sequence_to_sequence import SequenceToSequence, EmbeddingsSharingLevel | ||
from opennmt.models.sequence_tagger import SequenceTagger | ||
from opennmt.models.sequence_classifier import SequenceClassifier |
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