Package org.languagetool.synthesis

Examples of org.languagetool.synthesis.FrenchSynthesizer


  }

  @Override
  public final Synthesizer getSynthesizer() {
    if (synthesizer == null) {
      synthesizer = new FrenchSynthesizer();
    }
    return synthesizer;
  }
View Full Code Here


import org.languagetool.AnalyzedToken;

public class FrenchSynthesizerTest extends TestCase {

  public final void testSynthesizeStringString() throws IOException {
    FrenchSynthesizer synth = new FrenchSynthesizer();
    assertEquals(synth.synthesize(dummyToken("blablabla"), "blablabla").length, 0);
   
    assertEquals("[nagent]", Arrays.toString(synth.synthesize(dummyToken("nager"), "V ind pres 3 p")));
  }
View Full Code Here

TOP

Related Classes of org.languagetool.synthesis.FrenchSynthesizer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.