You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@joshua.apache.org by Tommaso Teofili <to...@gmail.com> on 2019/02/06 18:49:20 UTC

Re: Joshua from Java application

yes, exactly, we get them from LPs eventually fixing absolute paths
where needed.

Il giorno mer 6 feb 2019 alle ore 18:38 Nick Stroh
<ni...@icgsolutions.com> ha scritto:
>
> Disregard, found the config files within the language packs.  Thanks again.
>
> On Wed, Feb 6, 2019 at 10:43 AM Nick Stroh <ni...@icgsolutions.com> wrote:
>>
>> Thanks Tomasso, that's a big help.  Any chance you have a sample configuration file?
>>
>> On Wed, Feb 6, 2019 at 7:21 AM Tommaso Teofili <to...@gmail.com> wrote:
>>>
>>> Hi Nick,
>>>
>>> in Jackrabbit Oak we read a Joshua config file [1], build a Decoder
>>> and then translate a query encoded as a sentence [2].
>>>
>>> Hope it helps,
>>> Tommaso
>>>
>>> [1] : https://github.com/apache/jackrabbit-oak/blob/trunk/oak-search-mt/src/main/java/org/apache/jackrabbit/oak/plugins/index/mt/MTFulltextQueryTermsProviderFactory.java#L83
>>> [2] : https://github.com/apache/jackrabbit-oak/blob/trunk/oak-search-mt/src/main/java/org/apache/jackrabbit/oak/plugins/index/mt/MTFulltextQueryTermsProvider.java#L73
>>>
>>> Il giorno mar 5 feb 2019 alle ore 19:55 lewis john mcgibbney
>>> <le...@apache.org> ha scritto:
>>> >
>>> > Hi Nick,
>>> > I'm pretty sure there is a Java example somewhere but I honestly cannot find it. You may however also want to check out the REST API example
>>> > https://cwiki.apache.org/confluence/display/JOSHUA/RESTful+API
>>> > Lewis
>>> >
>>> > On Tue, Feb 5, 2019 at 10:23 AM <us...@joshua.apache.org> wrote:
>>> >>
>>> >> ---------- Forwarded message ----------
>>> >> From: Nick Stroh <ni...@icgsolutions.com>
>>> >> To: user@joshua.apache.org
>>> >> Cc:
>>> >> Bcc:
>>> >> Date: Tue, 5 Feb 2019 13:23:27 -0500
>>> >> Subject: Joshua from Java application
>>> >> Hello -
>>> >>
>>> >> Are there any end-to-end examples or documentation for calling Joshua from a Java application?  Preferably where the steps are to include Joshua as a Maven dependency, download a pre-trained model, specify a config file, and start translating Strings?
>>> >>
>>> >> The best I've found is JoshuaDecoder (https://github.com/apache/incubator-joshua/blob/master/src/main/java/org/apache/joshua/decoder/JoshuaDecoder.java), but haven't found instructions for execution (config file contents and location, command line arguments, etc).
>>> >>
>>> >> Thanks for any help.
>>> >>
>>> >> - Nick
>>> >
>>> >
>>> >
>>> > --
>>> > http://home.apache.org/~lewismc/
>>> > http://people.apache.org/keys/committer/lewismc
>>
>>
>>
>> --
>> Nick Stroh
>> Illumina Consulting Group
>> nick.stroh@icgsolutions.com
>
>
>
> --
> Nick Stroh
> Illumina Consulting Group
> nick.stroh@icgsolutions.com