pos internal&external lexicon debug code