Package org.languagetool.server
Class RemoteSynthesizer
java.lang.Object
org.languagetool.grpc.SynthesizeServerGrpc.SynthesizeServerImplBase
org.languagetool.server.RemoteSynthesizer
- All Implemented Interfaces:
io.grpc.BindableService,SynthesizeServerGrpc.AsyncService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.commons.cli.Optionsstatic voidprivate org.apache.commons.cli.CommandLineparseCommandLine(String[] args) removeDuplicates(String[] forms) synthesize(String languageCode, String lemma, String postag, boolean postagRegexp) synthesize(String languageCode, AnalyzedTokenReadings atrs, boolean postagRegexp, String postagSelect, String postagReplace, String lemmaReplace) voidsynthesize(Synthesizer.SynthesizeRequest request, io.grpc.stub.StreamObserver<Synthesizer.SynthesizeResponse> responseObserver) Methods inherited from class org.languagetool.grpc.SynthesizeServerGrpc.SynthesizeServerImplBase
bindService
-
Constructor Details
-
RemoteSynthesizer
public RemoteSynthesizer()
-
-
Method Details
-
synthesize
protected List<String> synthesize(String languageCode, String lemma, String postag, boolean postagRegexp) throws IOException - Throws:
IOException
-
synthesize
protected List<String> synthesize(String languageCode, AnalyzedTokenReadings atrs, boolean postagRegexp, String postagSelect, String postagReplace, String lemmaReplace) throws IOException - Throws:
IOException
-
removeDuplicates
-
synthesize
public void synthesize(Synthesizer.SynthesizeRequest request, io.grpc.stub.StreamObserver<Synthesizer.SynthesizeResponse> responseObserver) -
getCommandLineOptions
private org.apache.commons.cli.Options getCommandLineOptions() -
parseCommandLine
private org.apache.commons.cli.CommandLine parseCommandLine(String[] args) throws org.apache.commons.cli.ParseException - Throws:
org.apache.commons.cli.ParseException
-
main
- Throws:
IOExceptionInterruptedException
-