edu.stanford.nlp.tagger.maxent
Class TestSentenceTagged

java.lang.Object
  |
  +--edu.stanford.nlp.tagger.maxent.TestSentenceTagged

public class TestSentenceTagged
extends Object


Field Summary
static int[] hPos
           
static boolean[] isTag
           
 int numRight
           
 int numWrong
           
static LambdaSolve prob
          Title: Maximum Entropy Tool.
 
Constructor Summary
TestSentenceTagged()
           
TestSentenceTagged(LambdaSolve prob, String s)
           
TestSentenceTagged(LambdaSolve prob, String[] s, String[] tags, String[] correctTags, PrintFile pf, Dictionary wrongWords)
           
 
Method Summary
 String[] append(String[] tags)
           
 double[] getHistories(History h)
           
 String getTaggedNice()
           
 void init()
           
 void init1()
           
static int[] intersect(int[] arr1, int[] arr2)
           
static void main(String[] args)
           
 void revert(int prevSize, int afterSize)
           
 void test(String outFile)
           
 void test1(PrintFile pf, Dictionary wrongWords)
           
static String toNice(String s)
           
static String toSt(String s, boolean isWord)
           
static int[] unite(int[] arr1, int[] arr2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prob

public static LambdaSolve prob
Title: Maximum Entropy Tool.

Description:

Copyright: Copyright (c) Kristina Toutanova

Company: Stanford University


hPos

public static int[] hPos

isTag

public static boolean[] isTag

numRight

public int numRight

numWrong

public int numWrong
Constructor Detail

TestSentenceTagged

public TestSentenceTagged(LambdaSolve prob,
                          String s)

TestSentenceTagged

public TestSentenceTagged(LambdaSolve prob,
                          String[] s,
                          String[] tags,
                          String[] correctTags,
                          PrintFile pf,
                          Dictionary wrongWords)

TestSentenceTagged

public TestSentenceTagged()
Method Detail

revert

public void revert(int prevSize,
                   int afterSize)

init

public void init()

getTaggedNice

public String getTaggedNice()

toNice

public static String toNice(String s)

init1

public void init1()

toSt

public static String toSt(String s,
                          boolean isWord)

test

public void test(String outFile)

test1

public void test1(PrintFile pf,
                  Dictionary wrongWords)

append

public String[] append(String[] tags)

getHistories

public double[] getHistories(History h)

intersect

public static int[] intersect(int[] arr1,
                              int[] arr2)

unite

public static int[] unite(int[] arr1,
                          int[] arr2)

main

public static void main(String[] args)


Stanford NLP Group