El 2019-10-14 08:34, Sushain Cherivirala escribió:
I'm guessing python3-apertium is the name of the new library from
this
GsoC. What is this other package, apertium-python? apt show gives me
nothing.

python3-apertium as Tino is referring to it is the SWIG/Python
bindings for
https://github.com/apertium/apertium. They currently export a
`apertium_core` module.

This allows for apertium-python
(https://github.com/apertium/apertium-python), the
GSoC project (from this year and last) to export an `apertium` module
that under the
hood uses bindings from the `apertium_core`, `lttoolbox`, and
`constraint_grammer`
Python packages (aspirationally also `hfst`).

Since "apertium-python" is the more user facing version, having
wrappers for analysis,
taggers, translation, etc, it should in my opinion own the `apertium`
module. Today,
if you run `pip install apertium`, it is what you get. Running
`apt-get install python3-apertium`
should be consistent with it and it would be very odd otherwise.

We chose `apertium_core` in order to avoid the naming conflict but I
don't have a great
solution as far as the Debian package goes. There weren't plans to
export the package
to Pip as well so we didn't really focus on it.


Maybe something like apertium-internals ?

But I'd like the whole thing to be under the 'apertium' namespace if
possible.

e.g. import internals from apertium

The apertium package could throw an error if the other package isn't installed.

Fran


_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to