de.fu_berlin.ties.extract.amend
Class BeginEndReextractor.PositivePredictionsMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<Integer,LinkedHashMap<String,Prediction>>
              extended by de.fu_berlin.ties.extract.amend.BeginEndReextractor.PositivePredictionsMap
All Implemented Interfaces:
Serializable, Cloneable, Map<Integer,LinkedHashMap<String,Prediction>>
Enclosing class:
BeginEndReextractor

public static class BeginEndReextractor.PositivePredictionsMap
extends LinkedHashMap<Integer,LinkedHashMap<String,Prediction>>

An inner class used for communication with the first level (BeginEndStrategy). Instances of this class map from integers representing the index of a token in a document to all positive (more likely than "OTHER") predictions of a classifier.

See Also:
Serialized Form

Constructor Summary
BeginEndReextractor.PositivePredictionsMap()
          Creates a new instance.
BeginEndReextractor.PositivePredictionsMap(int initialCapacity)
          Creates a new instance.
BeginEndReextractor.PositivePredictionsMap(int initialCapacity, float loadFactor)
          Creates a new instance.
BeginEndReextractor.PositivePredictionsMap(Map<Integer,LinkedHashMap<String,Prediction>> m)
          Creates a new instance.
 
Method Summary
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

BeginEndReextractor.PositivePredictionsMap

public BeginEndReextractor.PositivePredictionsMap()
Creates a new instance.


BeginEndReextractor.PositivePredictionsMap

public BeginEndReextractor.PositivePredictionsMap(int initialCapacity)
                                           throws IllegalArgumentException
Creates a new instance.

Parameters:
initialCapacity - the initial capacity
Throws:
IllegalArgumentException - if the initial capacity is negative or the load factor is nonpositive

BeginEndReextractor.PositivePredictionsMap

public BeginEndReextractor.PositivePredictionsMap(int initialCapacity,
                                                  float loadFactor)
                                           throws IllegalArgumentException
Creates a new instance.

Parameters:
initialCapacity - the initial capacity
loadFactor - the load factor
Throws:
IllegalArgumentException - if the initial capacity is negative or the load factor is nonpositive

BeginEndReextractor.PositivePredictionsMap

public BeginEndReextractor.PositivePredictionsMap(Map<Integer,LinkedHashMap<String,Prediction>> m)
                                           throws NullPointerException
Creates a new instance.

Parameters:
m - the map whose mappings are to be placed in this map
Throws:
NullPointerException - if the specified map is null


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.