org.apache.uima.examples.tagger.trainAndTest
Class TagMappingBrown

java.lang.Object
  extended by org.apache.uima.examples.tagger.trainAndTest.TagMappingBrown
All Implemented Interfaces:
MappingInterface

public class TagMappingBrown
extends java.lang.Object
implements MappingInterface


Constructor Summary
TagMappingBrown()
           
 
Method Summary
 java.util.List map_tags(java.util.List tokens)
          Defines mapping for List<Token> E.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagMappingBrown

public TagMappingBrown()
Method Detail

map_tags

public java.util.List map_tags(java.util.List tokens)
Defines mapping for List<Token> E.g. if we need to map tags, given a list of Tokens, we need to map the pos field of every Token to a different pos. Basically the mapping performed in this class is just a case of simple "normalization", we just discard compound tags of the Brown corpus here.

Specified by:
map_tags in interface MappingInterface


Copyright © 2011. All Rights Reserved.