Beispiel #1
0
    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')
Beispiel #2
0
    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')
Beispiel #3
0
    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')
Beispiel #4
0
    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')
Beispiel #5
0
 def __init__(self):
     MosesFeature.__init__(self, 'LexicalReordering')
Beispiel #6
0
 def __init__(self):
     MosesFeature.__init__(self, 'LexicalReordering')
Beispiel #7
0
    def __init__(self, model, classname):
        MosesFeature.__init__(self, classname)

        self._order = None  # Injected
        self._model = model
Beispiel #8
0
    def __init__(self, model, classname):
        MosesFeature.__init__(self, classname)

        self._order = None  # Injected
        self._model = model