-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Helsinki-NLP/fix/sanitizing
Sanitization / refactoring
- Loading branch information
Showing
152 changed files
with
2,309 additions
and
5,605 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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Data Loaders | ||
================= | ||
|
||
Data Readers | ||
------------- | ||
|
||
.. autoexception:: mammoth.inputters.datareader_base.MissingDependencyException | ||
|
||
.. autoclass:: mammoth.inputters.DataReaderBase | ||
:members: | ||
|
||
.. autoclass:: mammoth.inputters.TextDataReader | ||
:members: | ||
|
||
|
||
Dataset | ||
-------- | ||
|
||
.. autoclass:: mammoth.inputters.Dataset | ||
:members: |
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,109 @@ | ||
Modules | ||
============= | ||
|
||
Core Modules | ||
------------ | ||
|
||
.. autoclass:: mammoth.modules.Embeddings | ||
:members: | ||
|
||
|
||
Encoders | ||
--------- | ||
|
||
.. autoclass:: mammoth.encoders.EncoderBase | ||
:members: | ||
|
||
.. autoclass:: mammoth.encoders.MeanEncoder | ||
:members: | ||
|
||
.. autoclass:: mammoth.encoders.RNNEncoder | ||
:members: | ||
|
||
|
||
Decoders | ||
--------- | ||
|
||
|
||
.. autoclass:: mammoth.decoders.DecoderBase | ||
:members: | ||
|
||
.. autoclass:: mammoth.decoders.decoder.RNNDecoderBase | ||
:members: | ||
|
||
.. autoclass:: mammoth.decoders.StdRNNDecoder | ||
:members: | ||
|
||
.. autoclass:: mammoth.decoders.InputFeedRNNDecoder | ||
:members: | ||
|
||
Attention | ||
---------- | ||
|
||
.. autoclass:: mammoth.modules.AverageAttention | ||
:members: | ||
|
||
.. autoclass:: mammoth.modules.GlobalAttention | ||
:members: | ||
|
||
|
||
|
||
Architecture: Transformer | ||
---------------------------- | ||
|
||
.. autoclass:: mammoth.modules.PositionalEncoding | ||
:members: | ||
|
||
.. autoclass:: mammoth.modules.position_ffn.PositionwiseFeedForward | ||
:members: | ||
|
||
.. autoclass:: mammoth.encoders.TransformerEncoder | ||
:members: | ||
|
||
.. autoclass:: mammoth.decoders.TransformerDecoder | ||
:members: | ||
|
||
.. autoclass:: mammoth.modules.MultiHeadedAttention | ||
:members: | ||
:undoc-members: | ||
|
||
|
||
Architecture: Conv2Conv | ||
---------------------------- | ||
|
||
(These methods are from a user contribution | ||
and have not been thoroughly tested.) | ||
|
||
|
||
.. autoclass:: mammoth.encoders.CNNEncoder | ||
:members: | ||
|
||
|
||
.. autoclass:: mammoth.decoders.CNNDecoder | ||
:members: | ||
|
||
.. autoclass:: mammoth.modules.ConvMultiStepAttention | ||
:members: | ||
|
||
.. autoclass:: mammoth.modules.WeightNormConv2d | ||
:members: | ||
|
||
Architecture: SRU | ||
---------------------------- | ||
|
||
.. autoclass:: mammoth.models.sru.SRU | ||
:members: | ||
|
||
|
||
Copy Attention | ||
-------------- | ||
|
||
.. autoclass:: mammoth.modules.CopyGenerator | ||
:members: | ||
|
||
|
||
Structured Attention | ||
------------------------------------------- | ||
|
||
.. autoclass:: mammoth.modules.structured_attention.MatrixTree | ||
:members: |
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,32 @@ | ||
Framework | ||
================= | ||
|
||
Model | ||
----- | ||
|
||
.. autoclass:: mammoth.models.NMTModel | ||
:members: | ||
|
||
Trainer | ||
------- | ||
|
||
.. autoclass:: mammoth.Trainer | ||
:members: | ||
|
||
|
||
.. autoclass:: mammoth.utils.Statistics | ||
:members: | ||
|
||
Loss | ||
---- | ||
|
||
|
||
.. autoclass:: mammoth.utils.loss.LossComputeBase | ||
:members: | ||
|
||
|
||
Optimizer | ||
--------- | ||
|
||
.. autoclass:: mammoth.utils.Optimizer | ||
:members: |
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,21 @@ | ||
Server | ||
====== | ||
|
||
|
||
Models | ||
------------- | ||
|
||
.. autoclass:: mammoth.translate.translation_server.ServerModel | ||
:members: | ||
|
||
|
||
Core Server | ||
------------ | ||
|
||
.. autoexception:: mammoth.translate.translation_server.ServerModelError | ||
|
||
.. autoclass:: mammoth.translate.translation_server.Timer | ||
:members: | ||
|
||
.. autoclass:: mammoth.translate.translation_server.TranslationServer | ||
:members: |
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,39 @@ | ||
Translation | ||
================== | ||
|
||
Translations | ||
------------- | ||
|
||
.. autoclass:: mammoth.translate.Translation | ||
:members: | ||
|
||
Translator Class | ||
----------------- | ||
|
||
.. autoclass:: mammoth.translate.Translator | ||
:members: | ||
|
||
.. autoclass:: mammoth.translate.TranslationBuilder | ||
:members: | ||
|
||
|
||
Decoding Strategies | ||
-------------------- | ||
.. autoclass:: mammoth.translate.DecodeStrategy | ||
:members: | ||
|
||
.. autoclass:: mammoth.translate.BeamSearch | ||
:members: | ||
|
||
.. autofunction:: mammoth.translate.greedy_search.sample_with_temperature | ||
|
||
.. autoclass:: mammoth.translate.GreedySearch | ||
:members: | ||
|
||
Scoring | ||
-------- | ||
.. autoclass:: mammoth.translate.penalties.PenaltyBuilder | ||
:members: | ||
|
||
.. autoclass:: mammoth.translate.GNMTGlobalScorer | ||
:members: |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.