Unbabel/OpenKiwi

View on GitHub
kiwi/systems/encoders/quetch.py

Summary

Maintainability
A
1 hr
Test Coverage
A
91%

Function forward has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def forward(self, batch_inputs):
        target_emb = self.embeddings[const.TARGET](batch_inputs[const.TARGET])
        source_emb = self.embeddings[const.SOURCE](batch_inputs[const.SOURCE])

        if const.TARGET_POS in self.embeddings:
Severity: Minor
Found in kiwi/systems/encoders/quetch.py - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status