def __init__(self, model, langs): MosesFeature.__init__(self, 'SAPT') self._sample = None # Injected self._model = model self._source_lang = langs[0] self._target_lang = langs[1] self._build_bin = os.path.join(cli.BIN_DIR, 'sapt_build')
def __init__(self, model, langs): MosesFeature.__init__(self, 'SAPT') self._sample = None # Injected self._model = model self._reordering_model_feature = None self._source_lang = langs[0] self._target_lang = langs[1] self._build_bin = os.path.join(cli.BIN_DIR, 'sapt_build')
def __init__(self, model, langs): MosesFeature.__init__(self, 'Mmsapt') self._sample = None # Injected self._method = None # Injected self._model = model self._source_lang = langs[0] self._target_lang = langs[1] self._cleaner = _CorpusCleaner() self._symal_bin = os.path.join(cli.BIN_DIR, 'moses', 'symal') self._symal2mam_bin = os.path.join(cli.BIN_DIR, 'moses', 'symal2mam') self._mttbuild_bin = os.path.join(cli.BIN_DIR, 'moses', 'mtt-build') self._mmlexbuild_bin = os.path.join(cli.BIN_DIR, 'moses', 'mmlex-build')
def __init__(self, model, langs): MosesFeature.__init__(self, 'Mmsapt') self._sample = None # Injected self._method = None # Injected self._model = model self._source_lang = langs[0] self._target_lang = langs[1] self._cleaner = _CorpusCleaner() self._symal_bin = os.path.join(Moses.bin_path, 'bin', 'symal') self._symal2mam_bin = os.path.join(Moses.bin_path, 'bin', 'symal2mam') self._mttbuild_bin = os.path.join(Moses.bin_path, 'bin', 'mtt-build') self._mmlexbuild_bin = os.path.join(Moses.bin_path, 'bin', 'mmlex-build')
def __init__(self): MosesFeature.__init__(self, 'LexicalReordering')
def __init__(self, model, classname): MosesFeature.__init__(self, classname) self._order = None # Injected self._model = model