kiwi/systems/encoders/quetch.py
Function forward
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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: