As 
https://github.com/apertium/apertium-apy/blob/master/apertium_apy/mode_search.py#L38
indicates, spamedical is not a valid identifier. Variants are _
suffixed, so it should be spa_medical and ast_medical

-- Tino Didriksen


On Thu, 13 Mar 2025 at 10:38, Víctor Sandín <vsan...@astibot.es> wrote:
>
> Thank you very much for your response.
>
> Checking what you say, I copied the modes directly to the other path and now 
> apertium -l does get the modes including the one I created (previously it was 
> *). But for example, if I do:
>
>
>
> curl http://localhost:2737/listPairs
>
>
>
> {"responseData": [{"sourceLanguage": "spa", "targetLanguage": "ast"}, 
> {"sourceLanguage": "ast", "targetLanguage": "spa"}], "responseDetails": null, 
> "responseStatus": 200}
>
>
>
> In the Dockerfile, I launch it with:
>
>
>
> ENTRYPOINT ["python3", "/root/apertium-apy/servlet.py", "--lang-names", 
> "/root/apertium-apy/langNames.db"]
>
> CMD ["/usr/local/share/apertium/modes", "--port", "2737"]
>
>
>
> So I understand that it should use that modes path. I don't know if I should 
> add something to the language_names folder (I tried without success).


_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to