Hi Vineet, there's a couple things:
1. tokenizing and detokenizing are part of the process of translating. You must give full paths to the tokenizer and detokenizer in translate.cgi 2. what you enter in the box on index.cgi must be a URL. It can't be HTML code, or a sentence. 3. before you can use the Web interface you must start daemon.pl, either on the same machine as the Web server or some other host reachable from there, and you must configure translate.cgi to connect to that daemon. It's the daemon that does the actual translating, so it's essential. Full instructions are here: http://saintamh.org/moses-web-tutorial.pdf 4. This script is only meant to translate Web pages. The functionality that you're describing (display a text box into which people can enter a sentence, then they click a button and they have it translated, if I understand correctly) is not offered by this script. cheers Herve --- On Fri, 6/2/09, Vineet Kashyap <[email protected]> wrote: > From: Vineet Kashyap <[email protected]> > Subject: Re: [Moses-support] Web based moses issue > To: [email protected] > Date: Friday, 6 February, 2009, 2:58 AM > Thanks Barry > > Now, i am getting the following errors in the log: > > Exec format error: exec of > '/usr/lib/cgi-bin/index.js' failed > > Premature end of script headers: index.js > > translate.cgi: Can't exec > "/home/vineet/Desktop/scripts-2008/scripts": > Permission denied at /usr/share/perl/5.10/IPC/Open3.pm line > 168. > > translate.cgi: open2: exec of > /home/vineet/Desktop/scripts-2008/scripts > -l fr failed at lib/Subprocess.pm line 38 thread 1 > > translate.cgi: Thread 1 terminated abnormally: Can't > connect to localhost:9001 > at lib/RemoteProcess.pm line 40. > > I dont want to do any toke../detok.. > > All i want is to translate simple sentences from the client > side. > Is there a simple way of just translating sentences rather > than a webpage? > > This is happening because of the html file that i have > written to translate: > > <html> > <head> > <meta http-equiv="content-type" > content="text/html; charset=UTF-8"> > <title>Simple HTML File</title> > > </head> > <body> > mera naam // this is what i want to translate > </body> > </html> > > As you can see what i want to translate is inside the body > and the absolute > location of this is what i enter inside the box when i run > index.cgi > > But i want the client(user) to have control over the > sentences that they > wish to translate. > > Thanks > > Vineet _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
