opennmt.utils
Module defining various utilities.
- BLEUScorer
- BeamSearch
- BestSampler
- CTranslate2Exporter
- CTranslate2Float16Exporter
- CTranslate2Int16Exporter
- CTranslate2Int8Exporter
- CTranslate2Int8Float16Exporter
- CheckpointExporter
- DecodingResult
- DecodingStrategy
- Exporter
- GreedySearch
- PRFScorer
- ROUGEScorer
- RandomSampler
- Sampler
- SavedModelExporter
- Scorer
- TERScorer
- TFLiteExporter
- TFLiteFloat16Exporter
- WERScorer
- average_checkpoints
- average_checkpoints_into_layer
- cross_entropy_loss
- cross_entropy_sequence_loss
- dynamic_decode
- format_translation_output
- guided_alignment_cost
- is_v1_checkpoint
- make_scorers
- max_margin_loss
- register_exporter
- register_scorer
- regularization_penalty
- roll_sequence