org.apache.uima.examples.tagger.trainAndTest
Class TagMappingBrown
java.lang.Object
org.apache.uima.examples.tagger.trainAndTest.TagMappingBrown
- All Implemented Interfaces:
- MappingInterface
public class TagMappingBrown
- extends Object
- implements MappingInterface
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagMappingBrown
public TagMappingBrown()
map_tags
public List map_tags(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 © 2006-2011 The Apache Software Foundation. All Rights Reserved.