@Test public void dictionaryMatch() { int indexWithDictionaryMatch = 2; final String[] actual = defaultPOSContextGenerator.getContext(indexWithDictionaryMatch, tokens, tags); final String[] expected = new String[] { "default", "w=tokenC", "p=tokenB", "t=tagB", "pp=tokenA", "t2=tagA,tagB", "n=tokenD", "nn=*SE*" }; Assert.assertArrayEquals("Calling with index matching dictionary entry at: " + indexWithDictionaryMatch + "\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);  }