Skip to content

Commit

Permalink
Wrapper for apertium-tagger
Browse files Browse the repository at this point in the history
  • Loading branch information
singh-lokendra committed Jul 17, 2019
1 parent 6c9b262 commit 94c2a69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apertium/utils.py
Expand Up @@ -77,6 +77,9 @@ def execute_pipeline(inp: str, commands: List[List[str]]) -> str:
elif 'apertium-pretransfer' == command[0]:
obj = apertium_core.apertium()
obj.pretransfer(arg, input_file.name, output_file.name)
elif 'apertium-tagger' == command[0]:
command += [input_file.name, output_file.name]
apertium_core.tagger(len(command), command)
else:
used_wrapper = False
if used_wrapper:
Expand Down
2 changes: 1 addition & 1 deletion build-swig-wrapper.sh
Expand Up @@ -15,7 +15,7 @@ cd apertium-lex-tools
cd python
python3 setup.py install

git clone --depth 1 https://github.com/apertium/apertium.git
git clone --depth 1 -b swig_wrapper_tagger https://github.com/Vaydheesh/apertium.git
cd apertium
./autogen.sh --enable-python-bindings && make -j2
cd python
Expand Down

0 comments on commit 94c2a69

Please sign in to comment.