Package edu.stanford.nlp.sempre.test

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

package edu.stanford.nlp.sempre.test;

import edu.stanford.nlp.sempre.fbalignment.lexicons.normalizers.PrepDropNormalizer;
import org.testng.annotations.Test;

import static org.testng.AssertJUnit.assertEquals;

/**
* Simple test for normalization (exercise)
* @author jonathan
*/

public class PrepDropNormalizerTest {
 
  @Test
  public void normalization() {
    PrepDropNormalizer normalizer = new PrepDropNormalizer();
    assertEquals("interested",normalizer.normalize("interested in"));
    assertEquals("interested", normalizer.normalize("interested at"));
    assertEquals("blow up",normalizer.normalize("blow up in"));
    assertEquals("blow up the",normalizer.normalize("blow up the to"));
  }
}
TOP

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

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.