@Test public void noDictionaryMatch() { int index = 1; final String[] actual = defaultPOSContextGenerator.getContext(index, tokens, tags); final String[] expected = new String[] { "default", "w=tokenB", "suf=B", "suf=nB", "suf=enB", "suf=kenB", "pre=t", "pre=to", "pre=tok", "pre=toke", "c", "p=tokenA", "t=tagA", "pp=*SB*", "n=tokenC", "nn=tokenD" }; Assert.assertArrayEquals("Calling with not matching index at: " + index + "\nexpected \n" + Arrays.toString(expected) + " but actually was \n" + Arrays.toString(actual), expected, actual); }
public String[] getContext(int index, String[] sequence, String[] priorDecisions, Object[] additionalContext) { return getContext(index,sequence,priorDecisions); }
DefaultPOSContextGenerator implements POSContextGenerator { public String[] getContext(int index, String[] sequence, String[] priorDecisions, Object[] additionalContext) { return getContext(index,sequence,priorDecisions); } }
DefaultPOSContextGenerator implements POSContextGenerator { public String[] getContext(int index, String[] sequence, String[] priorDecisions, Object[] additionalContext) { return getContext(index,sequence,priorDecisions); } DefaultPOSContextGenerator(Dictionary dict);  DefaultPOSContextGenerator(int cacheSize, Dictionary dict); }
DefaultPOSContextGenerator implements POSContextGenerator { public String[] getContext(int index, String[] sequence, String[] priorDecisions, Object[] additionalContext) { return getContext(index,sequence,priorDecisions); } DefaultPOSContextGenerator(Dictionary dict);  DefaultPOSContextGenerator(int cacheSize, Dictionary dict); String[] getContext(int index, String[] sequence, String[] priorDecisions,
      Object[] additionalContext); String[] getContext(int index, Object[] tokens, String[] tags); }
DefaultPOSContextGenerator implements POSContextGenerator { public String[] getContext(int index, String[] sequence, String[] priorDecisions, Object[] additionalContext) { return getContext(index,sequence,priorDecisions); } DefaultPOSContextGenerator(Dictionary dict);  DefaultPOSContextGenerator(int cacheSize, Dictionary dict); String[] getContext(int index, String[] sequence, String[] priorDecisions,
      Object[] additionalContext); String[] getContext(int index, Object[] tokens, String[] tags);  }