Package org.languagetool.synthesis

Examples of org.languagetool.synthesis.FrenchSynthesizer.synthesize()


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")));
  }

  private AnalyzedToken dummyToken(String tokenStr) {
View Full Code Here


  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")));
  }

  private AnalyzedToken dummyToken(String tokenStr) {
    return new AnalyzedToken(tokenStr, tokenStr, tokenStr);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.