> an you please provide more information
about your project setup (e.g., how are you calling Tika translate?
via the Tika Server - new, but I’ve verified it works with all
the Translators; or via Java?)

Disclosure: this is entirely in Clojure; I haven't written any Java code.

I'm instantiating a translator here
<https://github.com/lewismc/iPReS/blob/master/app/src/app/core.clj#L134>,
then invoking the *translate* method which takes in a source and desired
language code here
<https://github.com/lewismc/iPReS/blob/master/app/src/app/core.clj#L142>.
I'm unaware of how one sets a class path in Clojure (or Java for that
matter), so there's no explicit code which does that.

> Are you providing the correct key in your translator.properties
file? It’s weird when you get an account with Bing translate and
just want to make sure you’re using the right keys instead of e.g.,
the client key or something else.

I believe so.  Here's my translator.properties file
<https://github.com/lewismc/iPReS/blob/master/app/resources/org/apache/tika/language/translate/translator.microsoft.properties>,
and I'm re-registering my "application" to have the same Client ID and
Client Secret:



- Phillip

On Thu, May 28, 2015 at 7:37 AM, Mattmann, Chris A (3980) <
[email protected]> wrote:

> Hi Phillip,
>
> Thanks for your email. Can you please provide more information
> about your project setup (e.g., how are you calling Tika translate?
> via the Tika Server - new, but I’ve verified it works with all
> the Translators; or via Java?) If so can I see how you are setting
> your class path?
>
> Are you providing the correct key in your translator.properties
> file? It’s weird when you get an account with Bing translate and
> just want to make sure you’re using the right keys instead of e.g.,
> the client key or something else.
>
> Cheers,
> Chris
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Chris Mattmann, Ph.D.
> Chief Architect
> Instrument Software and Science Data Systems Section (398)
> NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
> Office: 168-519, Mailstop: 168-527
> Email: [email protected]
> WWW:  http://sunset.usc.edu/~mattmann/
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Adjunct Associate Professor, Computer Science Department
> University of Southern California, Los Angeles, CA 90089 USA
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
>
>
> -----Original Message-----
> From: <Carter>, Phillip Michael <[email protected]>
> Reply-To: "[email protected]" <[email protected]>
> Date: Wednesday, May 27, 2015 at 7:30 PM
> To: "[email protected]" <[email protected]>
> Subject: Tika-Translate, Clojure, and a new Constructor
>
> >Tika-translate doesn't work in the iPReS Project
> ><https://github.com/lewismc/iPReS> when
> > attempting to utilize the MicrosoftTranslator.  I have configured the
> >project to use the same resources file structure as the Tika project, and
> >I have verified that the client-id and client-secret match the account I
> >have set up with Microsoft.
> >
> >I have verified that this line
> ><https://github.com/lewismc/iPReS/blob/master/app/src/app/core.clj#L142>
> >of code is always called when making a new request, and that Tika itself
> >is indeed
> > being called into - but nothing is being translated.  My hypothesis is
> >that Tika cannot recognize the config file I have, even though it matches
> >the path in the project itself.  This can be verified by running the
> >project.
> >
> >
> >I propose expanding the API for the Microsoft and Google Translators to
> >accept configuration details as parameters.  This eases development for
> >the iPReS project by allowing us to be responsible for our own
> >configuration
> > details, and allows the use of these translators in the REPL, allowing
> >for more interactive development.
> >
> >
> >- Phillip
> >
>
>

Reply via email to