You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Chris A. Mattmann (JIRA)" <ji...@apache.org> on 2015/05/07 02:46:00 UTC

[jira] [Updated] (TIKA-1623) Expose Translation Interface from Tika Server

     [ https://issues.apache.org/jira/browse/TIKA-1623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated TIKA-1623:
------------------------------------
    Attachment: TIKA-1623.Mattmann.050615.patch.txt

- ok here is what I got:

 - /translate/all/{translator}/{src}/{dest}
 - translate by Translator impl class

{noformat}
$ cat sentences 
me falta práctica en Español
$ curl -X PUT --data-binary @sentences http://localhost:9998/translate/all/org.apache.tika.language.translate.Lingo24Translator/es/en
lack of practice in Spanish
{noformat}

>From the server (output)
{noformat}
[chipotle:~/src/tika-server] mattmann% java -jar target/tika-server-1.9-SNAPSHOT.jar
May 06, 2015 2:41:25 PM org.apache.tika.server.TikaServerCli main
INFO: Starting Apache Tika 1.9-SNAPSHOT server
May 06, 2015 2:41:26 PM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be http://localhost:9998/
May 06, 2015 2:41:26 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: jetty-8.y.z-SNAPSHOT
May 06, 2015 2:41:26 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Started SelectChannelConnector@localhost:9998
May 06, 2015 2:41:26 PM org.apache.tika.server.TikaServerCli main
INFO: Started
May 06, 2015 2:41:29 PM org.apache.tika.server.resource.TranslateResource translate
INFO: Using translator: [org.apache.tika.language.translate.Lingo24Translator]: src: [es]: dest: [en]
{noformat}


> Expose Translation Interface from Tika Server
> ---------------------------------------------
>
>                 Key: TIKA-1623
>                 URL: https://issues.apache.org/jira/browse/TIKA-1623
>             Project: Tika
>          Issue Type: Bug
>          Components: server, translation
>            Reporter: Chris A. Mattmann
>            Assignee: Chris A. Mattmann
>             Fix For: 1.9
>
>         Attachments: TIKA-1623.Mattmann.050615.patch.txt
>
>
> Tika Server should expose the Tika Translate API. This will allow for easy use in downstream clients such as [Tika-Python|http://github.com/chrismattmann/tika-python]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)