Examples of mergeWords()


Examples of games.stendhal.common.parser.SentenceImplementation.mergeWords()

    sentence.classifyWords(parser);
    assertFalse(sentence.hasError());
    assertEquals("quick/ADJ brown/ADJ-COL fox/SUB-ANI jump/VER over/PRE lazy/ADJ dog/SUB-ANI.",
        sentence.toString());

    sentence.mergeWords();
    assertEquals("quick brown fox/SUB-ANI-COL jump/VER over/PRE lazy dog/SUB-ANI.", sentence.toString());
    assertEquals(Sentence.SentenceType.STATEMENT, sentence.getType());

    sentence = new SentenceImplementation(ctx, "does it fit");
    parser = new ConversationParser(sentence);
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.