kiwi/systems/qe_system.py
File qe_system.py
has 507 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# OpenKiwi: Open-Source Machine Translation Quality Estimation
# Copyright (C) 2020 Unbabel <openkiwi@unbabel.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
Function load_from_checkpoint
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def load_from_checkpoint(
Avoid deeply nested control flow statements. Open
Open
if selection not in metrics:
raise KeyError(
f'Main metric {selection} is not a configured metric; '
f'available options are: {list(metrics.keys())}'
)
Function set_config_options
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def set_config_options(