edu.ucdenver.ccp.nlp.biolemmatizer
Class LemmataEntry

java.lang.Object
  extended by edu.ucdenver.ccp.nlp.biolemmatizer.LemmataEntry

public class LemmataEntry
extends Object

LemmataEntry: store POS tags and corresponding lemmas for one lemmata entry


Nested Class Summary
static class LemmataEntry.Lemma
          Simple utility class to store a single lemma/pos combination
 
Field Summary
 Map<String,String> lemmasAndCategories
          Map to store lemmata info.
static String lemmaSeparator
          Lemma separator character
 
Constructor Summary
LemmataEntry(Map<String,String> lemmasAndCategories, edu.ucdenver.ccp.nlp.biolemmatizer.POSEntry posEntry)
          Construtor to initialize the class field
 
Method Summary
 Collection<LemmataEntry.Lemma> getLemmas()
           
 String lemmasToString()
          Represent lemmas of different POS tags; separated by lemmaSeparator
 String toString()
          Override toString() method to represent lemma and POS info in a concatenated triplet; Different lemmas are separated by lemmaSeparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lemmasAndCategories

public Map<String,String> lemmasAndCategories
Map to store lemmata info. A POS tag is the key, and the corresponding lemma is the value.


lemmaSeparator

public static String lemmaSeparator
Lemma separator character

Constructor Detail

LemmataEntry

public LemmataEntry(Map<String,String> lemmasAndCategories,
                    edu.ucdenver.ccp.nlp.biolemmatizer.POSEntry posEntry)
Construtor to initialize the class field

Parameters:
lemmasAndCategories - a Map object that stores lemmata info
posEntry - provides mappings from POS tags to a corresponding tag set name
Method Detail

toString

public String toString()
Override toString() method to represent lemma and POS info in a concatenated triplet; Different lemmas are separated by lemmaSeparator

Overrides:
toString in class Object

lemmasToString

public String lemmasToString()
Represent lemmas of different POS tags; separated by lemmaSeparator

Returns:
string representation of lemma info

getLemmas

public Collection<LemmataEntry.Lemma> getLemmas()
Returns:
a Collection of unique LemmataEntry.Lemma objects


Copyright © 2013. All Rights Reserved.