public class TagMappingBrown extends Object implements MappingInterface
Constructor and Description |
---|
TagMappingBrown() |
Modifier and Type | Method and Description |
---|---|
List |
map_tags(List tokens)
Defines mapping for List<
Token >
E.g. |
public List map_tags(List tokens)
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.map_tags
in interface MappingInterface
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.