Module pysimt.translators

Expand source code
from .greedy import GreedySearch
from .sim_greedy import SimultaneousGreedySearch
from .waitk_greedy import SimultaneousWaitKGreedySearch


def get_translator(_type):
    return {
        'gs': GreedySearch,
        'sgs': SimultaneousGreedySearch,
        'wk': SimultaneousWaitKGreedySearch,
    }[_type]

Sub-modules

pysimt.translators.greedy
pysimt.translators.sim_greedy
pysimt.translators.waitk_greedy

Functions

def get_translator(_type)
Expand source code
def get_translator(_type):
    return {
        'gs': GreedySearch,
        'sgs': SimultaneousGreedySearch,
        'wk': SimultaneousWaitKGreedySearch,
    }[_type]