apertium/apertium-python

Analyzer code _get_commands() not processing first input.

Closed this issue · 3 comments

orgh0 commented
In [1]: import apertium

In [2]: a = apertium.Analyzer('en')

In [3]: a.analyze('cats')
Out[3]: []

But,

In [5]: a.analyze('hey cats')
Out[5]: [hey/hey<ij>]

This happens only for analysis. Generation doesn't have any such issues.

orgh0 commented

INFO:

Happens when the command in mode file is passed.

Right now the pipeline uses apertium command for analysis

I couldn't reproduce this bug. I am sorry but am I missing something? the above code gives me the results I want correctly.

@Vaydheesh is this still a problem? I assume not. If not, can you close the issue.