org.ow2.weblab.service.translate.moses
Class MosesTranslatorService

java.lang.Object
  extended by org.ow2.weblab.service.translate.moses.MosesTranslatorService
All Implemented Interfaces:
org.ow2.weblab.core.services.Analyser

public class MosesTranslatorService
extends java.lang.Object
implements org.ow2.weblab.core.services.Analyser

Translation web service using moses open source framework.

Author:
Jérémie Doucy, CASSIDIAN, an EADS company

Field Summary
protected  boolean alignSegment
           
protected static org.apache.commons.logging.Log LOG
           
protected  java.lang.String splitRegexp
           
protected static java.util.Map<java.lang.String,Translator> TRANSLATORS
           
 
Constructor Summary
MosesTranslatorService()
           
 
Method Summary
 void init()
           
 void init(java.lang.String configFile)
           
 org.ow2.weblab.core.services.analyser.ProcessReturn process(org.ow2.weblab.core.services.analyser.ProcessArgs processArgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alignSegment

protected boolean alignSegment

splitRegexp

protected java.lang.String splitRegexp

TRANSLATORS

protected static java.util.Map<java.lang.String,Translator> TRANSLATORS

LOG

protected static org.apache.commons.logging.Log LOG
Constructor Detail

MosesTranslatorService

public MosesTranslatorService()
Method Detail

init

public void init(java.lang.String configFile)
          throws java.io.IOException
Throws:
java.io.IOException

init

@PostConstruct
public void init()
          throws java.io.IOException
Throws:
java.io.IOException

process

public org.ow2.weblab.core.services.analyser.ProcessReturn process(org.ow2.weblab.core.services.analyser.ProcessArgs processArgs)
                                                            throws org.ow2.weblab.core.services.AccessDeniedException,
                                                                   org.ow2.weblab.core.services.ContentNotAvailableException,
                                                                   org.ow2.weblab.core.services.InsufficientResourcesException,
                                                                   org.ow2.weblab.core.services.InvalidParameterException,
                                                                   org.ow2.weblab.core.services.ServiceNotConfiguredException,
                                                                   org.ow2.weblab.core.services.UnexpectedException,
                                                                   org.ow2.weblab.core.services.UnsupportedRequestException
Specified by:
process in interface org.ow2.weblab.core.services.Analyser
Throws:
org.ow2.weblab.core.services.AccessDeniedException
org.ow2.weblab.core.services.ContentNotAvailableException
org.ow2.weblab.core.services.InsufficientResourcesException
org.ow2.weblab.core.services.InvalidParameterException
org.ow2.weblab.core.services.ServiceNotConfiguredException
org.ow2.weblab.core.services.UnexpectedException
org.ow2.weblab.core.services.UnsupportedRequestException


Copyright © 2004-2011. All Rights Reserved.