Barry, why is abyss webserver a dependency? Mosesserver compiles fine and loads an SMT model without it. I just finished a Python client and it talks to the server without abyss.

I attached an example Python XML-RPC client, mosesserver-client.py, that I'd like to contribute to the mosesdecoder/contrib/server folder with the Java and Perl examples.

Tom


On 04/26/2013 06:41 PM, Barry Haddow wrote:
Hi Lane

The Moses server depends on the xmlrpc-c libraries, which in turn
depend on the abyss webserver. If they work on windows, then
mosesserver should work,

cheers - Barry

Quoting Hieu Hoang <[email protected]> on Thu, 25 Apr 2013 15:02:37 +0100:

I think can run any executable compiled with Cygwin by putting cygwin1.dll
in your Windows/system32 path.

If you use perl scripts, I think you'll need full-on command-line cygwin.

Let me know if that's actually the case


On 25 April 2013 14:55, Lane Schwartz <[email protected]> wrote:

Is cygwin required to run the Windows binaries, or just required to
compile them?


On Thu, Apr 25, 2013 at 9:28 AM, Hieu Hoang <[email protected]> wrote:

How do I compile mosesserver? I'll try it on my windows VM and let you
know.

It should work, cygwin seems to be quite Linux-like these days.


On 25 April 2013 14:13, Tom Hoar
<[email protected]>wrote:

  We just finished regression testing the v1.0 source code 64-bit Linux
compile and integration into our system. When we compile from source, the
mosesserver binary ends up here:


mosesdecoder/contrib/server/bin/gcc-4.6/release/debug-symbols-on/link-static/runtime-link-static/threading-multi/mosesserver

It looks like the binaries in
http://www.statmt.org/moses/RELEASE-1.0/binaries/linux-64bit/ are just
a subset of everything you get when you compile.

Tom




On 04/25/2013 08:06 PM, Lane Schwartz wrote:

Hmm, that's odd. In the v1.0 release, there are mosesserver binaries for
the Mac OS X build, but not for Linux or Windows.

Would it be possible to have those included in the v1.0 release?

Thanks,
Lane

On Thu, Apr 25, 2013 at 9:00 AM, Lane Schwartz <[email protected]>wrote:

Does anyone know if moses server compiles and runs on Windows? I don't
see that a mosesserver binary is included with the v1.0 release.

Thanks,
Lane



_______________________________________________
Moses-support mailing
[email protected]http://mailman.mit.edu/mailman/listinfo/moses-support



_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support



--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu


_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support



--
When a place gets crowded enough to require ID's, social collapse is not
far away.  It is time to go elsewhere.  The best thing about space travel
is that it made it possible to go elsewhere.
                 -- R.A. Heinlein, "Time Enough For Love"



--
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu




#! /usr/bin/env python
# -*- coding: utf8 -*-

#===============================================================================
# Author: Tom hoar
#===============================================================================

import sys
import xmlrpclib

def main():

	# configure xml-rpc proxy
	hostname = 'localhost'
	port = 8080
	uri = '%s://%s:%s%s'%('http',hostname,port,'/RPC2')
#	print uri

	textToTranslate = "text to translate goes here ."

	mosesParams = {
		"text": textToTranslate,
		"align": "true",
		"report-all-factors": "true",
		}

	proxy = xmlrpclib.ServerProxy(uri,verbose=False)
#	print proxy

	result = proxy.translate(mosesParams)
#	print result

	textTranslation = result["text"]
	sys.stderr.write( "Input : %s\n" % textToTranslate )
	sys.stdout.write( "Translation : %s\n" % textTranslation )

	return

licensetxt=u'''DoMY™ CE v2.5
Copyright © 2010-2013 Precision Translation Tools Co., Ltd.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see http://www.gnu.org/licenses/.

For more information, please contact Precision Translation Tools Co., Ltd.
at: http://www.precisiontranslationtools.com'''

if __name__ == "__main__":

	sys.exit(main())
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to