Package edu.stanford.nlp.sempre.test

Source Code of edu.stanford.nlp.sempre.test.StemmerTest

package edu.stanford.nlp.sempre.test;

import edu.stanford.nlp.sempre.Stemmer;
import org.testng.annotations.Test;

import static org.testng.AssertJUnit.assertEquals;

public class StemmerTest {
  @Test public void simpleStem() {
    Stemmer stemmer = new Stemmer();
    assertEquals("box", stemmer.stem("boxes"));
    assertEquals("creat", stemmer.stem("created"));
    assertEquals("citi", stemmer.stem("cities"));
  }
}
TOP

Related Classes of edu.stanford.nlp.sempre.test.StemmerTest

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.