|
Parsing Engine | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Client
interface, as well as other convenient utility
methods.AbstractClient
object.
UnsupportedOperationException
for every optional operation
of the Constraint
interface.equals
method, as specified by the contract in Event.equals(Object)
.List
and FixedSizeList
.HeadFinder
interface.Settings.get(Settings.headTablePrefix + language)
,
where language
is the value of
Settings.get(Settings.language)
.
HeadFindInstruction
object.
UnsupportedOperationException
.MapToPrimitive.Entry
interface: all primitive-specific
methods are implemented to throw an
UnsupportedOperationException
.Server
interface, allowing subclasses to focus solely on the services they will
provide to clients.AbstractServer
object.
SwitchboardUser
, so that subclasses that need to
implement the Client
and Server
interfaces
need only implement the methods introduced in those subinterfaces,
as is the case with the AbstractClient
and
AbstractServer
implementations provided by this package.AbstractSwitchboardUser.alive()
.keepTrying()
that checks the value of AbstractSwitchboardUser.timeToDie
.AbstractTraining.argContexts
to a new Map
object, sets AbstractTraining.semTagArgStopSet
to a new Set
object and initializes AbstractTraining.canonicalAugDelimSym
.
WordFeatures
interface.ServerSocket.implAccept
to wait for a
connection.
sexp
to the end of this list.
sexp
at position index
, shifting all
elements to the right by one position to make room (an O(n) operation).
Symbol.get(String)
.
Symbol.get(Integer)
.
Symbol.add(Integer)
: the specified
int
is first wrapped in an Integer
object and
then added to the internal symbol map.
1.0
.
UnsupportedOperationException
, as this is an
unmodifiable map.
Sexp
instance,
to this event.
add(obj)
.
byte
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
byte
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
short
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
short
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
int
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
int
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
long
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
long
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
float
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
float
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
double
value (at index 0)
associated with the specified key, or if no mapping previously existed for
the specified key, then this method adds a new map entry mapping the key
to the specified addend.
double
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
int
at index 0 by the specified amount.
int
at the specified index by the specified
amount.
UnsupportedOperationException
.
FixedSizeList.shift(Object)
.
double
associated with the
key in this entry.
int
associated with the key
in this entry.
double
at the specified
index associated with the key in this entry.
int
at the specified index
associated with the key in this entry.
byte
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
byte
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
short
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
short
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
int
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
int
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
long
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
long
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
float
value (at index 0)
associated with the specified key, or if no mapping previously existed
for the specified key, then this method adds a new map entry mapping
the key to the specified addend.
float
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
double
value (at index 0)
associated with the specified key, or if no mapping previously existed for
the specified key, then this method adds a new map entry mapping the key
to the specified addend.
double
value at the specified
index associated with the specified key, or if no mapping previously
existed for the specified key, then this method adds a new map entry
mapping the key to the specified addend at the specified index.
byte
at index 0 by the specified amount.
byte
at the specified index by the specified
amount.
short
at index 0 by the specified amount.
short
at the specified index by the specified
amount.
int
at index 0 by the specified amount.
int
at the specified index by the specified
amount.
long
at index 0 by the specified amount.
long
at the specified index by the specified
amount.
float
at index 0 by the specified amount.
float
at the specified index by the specified
amount.
double
at index 0 by the specified amount.
double
at the specified index by the specified
amount.
elementsToAdd
to the end of this
list.
elementsToAdd
to this list
at the specified index.
list
to this subcat bag,
effectively calling BrokenSubcatBag.add(Symbol)
for each element of
list
.
UnsupportedOperationException
, as this is an
unmodifiable map.
list
to this subcat bag,
effectively calling SubcatBag.add(Symbol)
for each element of
list
.
Symbol
objects) of list
to this subcat list.
UnsupportedOperationException
.
Nonterminal
object.
Nonterminal
object.
Treebank.isPossessivePreterminal(Sexp)
.
addGapEvent(event, 1.0)
.
GapEvent
to Trainer.gapEvents
with
the specified count.
Settings.addGapInfo
.
addHeadEvent(event, 1.0)
.
HeadEvent
to Trainer.headEvents
with
the specified count.
tree
, augmenting nodes that are the
head child of their parent by appending HeadFinder.headSuffix()
.
tree
, augmenting nodes that
are the head children of their respective parents.
null
if no other data is required for
the concrete probability structure.
addModifierEvent(event, 1.0)
.
ModifierEvent
to Trainer.modifierEvents
with the specified count.
itemsAdded
list.
Trainer.collectStats(danbikel.lisp.Sexp, danbikel.parser.HeadTreeNode, boolean)
and
Trainer.alterLowFrequencyWords(HeadTreeNode)
.
Trainer.addToPosMap(Word)
.
value
to the set of values to which
key
is mapped (if value
is not already in
that set) and increments the count of that value by 1.
value
to the set of values to which
key
is mapped (if value
is not already
in that set) and increments the count of that value by
count
.
value
to the set that is the vale of key
in map
; creates this set if a mapping doesn't already
exist for key
.
AllPass
.
Word
in the specified tree, if it occurred
less than Trainer.unknownWordThreshold
times, then it is modified.
Model
s in a ModelCollection
.AbstractTraining.identifyArguments(Sexp)
.
"-+"
.
"-=|"
.
"-=|"
.
"-=|"
.
BitSet
indexed by character (that is, whose size is
Character.MAX_VALUE
), where for each character c
of the string returned by AbstractTreebank.augmentationDelimiters()
,
augmentationDelimSet.get(c)
returns true
.
Model.numLevels
- 1
maps, where map
i is a map from back-off level i transitions to
i + 1 transitions.
Treebank.baseNPLabel()
, cached for efficiency and
convenience.
AbstractTraining.addBaseNPs(Sexp)
will
relabel base NPs.
AbstractTraining.addBaseNPs(Sexp)
will
relabel base NPs.
AbstractTraining.addBaseNPs(Sexp)
will
relabel base NPs.
AbstractTraining.addBaseNPs(Sexp)
will
relabel base NPs.
Training.addBaseNPs(Sexp)
will
relabel core NPs.
Training.addBaseNPs(Sexp)
will
relabel core NPs.
Settings.baseNPsCannotContainVerbs
setting.
System.err
during the invocation of its methods, such as
Model.deriveCounts(CountsTable,Filter,double,FlexibleMap)
.
System.err
during the invocation of its methods, such as
Model.deriveCounts(CountsTable,Filter,double,FlexibleMap)
.
BiCountsTable
.
BiCountsTable
with the specified initial
number of hash buckets.
BiCountsTable
with the specified initial
number of hash buckets and the specified load factor.
Settings.get(Settings.headTablePrefix + Language.getLanguage())
.
BrokenLeftSubcatModelStructure
instance.
BrokenRightSubcatModelStructure
instance.
SubcatBag
that precisely reflects
the details specified in Collins’ thesis (used for
“clean-room” implementation).list
.
BrokenSubcatBag
objects.SubcatBagFactory
.
Language
.
Treebank
object.
Model.precomputeProbs
is false
.
DecoderServerRemote
instance that provides
probability caching.System.gc()
after
this object has been de-serialized from a stream.
AbstractTreebank.augmentationDelimiters()
, which will be considered the
"canonical" augmentation delimiter when adding
new augmentations, such as the argument augmentations added by
implementations of Training.identifyArguments(Sexp)
.
Treebank.augmentationDelimiters()
, which will be considered the
"canonical" augmentation delimiter when adding
new augmentations, such as the argument augmentations added by
implementations of Training.identifyArguments(Sexp)
.
Treebank.augmentationDelimiters()
.
Treebank.augmentationDelimiters()
.
Event
objects to save memory
in the various tables of this model that store such Event
objects.
Model
, as well as all
internal Model
instances.
Sexp
and Subcat
components of this event using the specified reflexive map.
SexpList
objects that represent unlexicalized previous modifier lists.
Subcat
objects.
true
if cell limiting should apply to the specified
item.
true
if the specified item has received its
stop probabilities (that is, if item.stop() == true
).
Item
to be used for chart items.
System.err
when a current setting differs.
Word.Word(Sexp)
is the right
format.
null
if the specified side has no modifiers.
CKYChart
for use when parsing via a probabilistic
version of the CKY algorithm.CKYItem
that overrides CKYItem.BaseNPAware.equals(java.lang.Object)
and CKYItem.BaseNPAware.hashCode()
to take into account the lack of
dependence on the distance metric when the root label of an item's
set of derivations is NPB.equals
and hashCode
methods to compare
the last previous modifier on each side of each chart item's head child
with respect to their respective equivalence classes, as determined by the
mapping provided by NTMapper.map(Symbol)
.equals
and hashCode
methods
to take the last previous modifier into account only insofar as
its equality to the initial Training.startSym()
modifier.Model.precomputeProbs()
to clean up (that is, remove) objects from the various
counts tables that are no longer needed, as determined by ProbabilityStructure.removeHistory(int,Event)
and ProbabilityStructure.removeTransition(int,Transition)
.
AbstractSwitchboardUser.unexportWhenDead()
.
null
, then a new
map is created.
null
, then a
new map is created.
Chart.reclaimItem(Item)
).
null
.
Trainer.priorEvents
, Trainer.headEvents
, Trainer.modifierEvents
and Trainer.gapEvents
counts tables.
SwitchboardUser
implementors that
are clients; also, specifies client-specific methods for the switchboard
to use.SwitchboardRemote.nextObject(int)
returns null
.
Symbol
references.
Reader
of this
ObjectReader
object.
Writer
of this
ObjectWriter
object.
SexpList
that contains all the leaves of the
specified parse tree.
SexpList
that contains all the words of the
specified parse tree as well as their part of speech tags, where each
word is its own SexpList
of the form (word (tag)).
end
and that
word is not a comma and when it is not the case that the word at
end
is not a conunction.
Item
.
Model
when Settings.modelDoPruning
is true: entropy values and
JS divergence values are used in the parameter-pruning method.
CountsTable
object.
ConstraintSet
object factory, to be used by
the ConstraintSets
static factory class.ConstraintSetFactory
object to be used by the
ConstraintSets
static class.
ConstraintSet
objects.Word
object into a preterminal subtree.
Word
object into a preterminal subtree.
EventCountsConsumer.consume(NumberedObject)
to perform
consumption of objects that are periodicially written to an output file by
a separate “dumper” thread.
TagMap.transformTag(Word)
.
true
if this subcat frame contains the
specified requirement.
CKYItem.containsVerb()
method
invoked on this chart item, initially set to CKYItem.containsVerbUndefined
.
CKYItem.containsVerb()
has been invoked on this item and its value is false (i.e.,
this item does not have a derivation dominating a verb).
CKYItem.containsVerb()
that returns whether a verb has
been generated anywhere in the surface string of the derivations of this
chart item.
CKYItem.containsVerb()
has been invoked on this item and its value is true (i.e.,
this item has a derivation dominating a verb).
CKYItem.containsVerb()
has not yet been invoked on this item.
Decoder.headToParentMap
from Set
objects to arrays of Symbol
, that is, arrays of type
Symbol[]
.
Decoder.convertSubcatMaps()
.
Set
objects (containing Subcat
objects) to Subcat
arrays, that is, objects of type
Subcat[]
.
CachingDecoderServer.convertUnknownWords(SexpList)
.
DecoderServerRemote.convertUnknownWords(SexpList)
.
WordFeatures.features(Symbol,boolean)
, and
the third element is Constants.trueSym
if this word was never
observed during training or Constants.falseSym
if it was
observed at least once during training.
WordFeatures.features(Symbol,boolean)
, and
the third element is Constants.trueSym
if this word was never
observed during training or Constants.falseSym
if it was
observed at least once during training.
Sexp
, using the Sexp.deepCopy
method.
SexpEvent.copy
to
copy the backing Sexp
, and using Event.copy
to copy the backing Subcat
, if there is one.
Transition
object.
Sexp
of this event.
0
if this
counts table does not contain a count for the specified key.
0
if this counts table does not contain a count for the
specified key.
TrainerEvent
object contained by
this map entry.
double
)
counts that may be incremented or decremented.CountsTable
.
CountsTable
with the specified initial
number of hash buckets.
CountsTable
with the specified initial
number of hash buckets and the specified load factor.
TrainerEvent
objects are discarded by the trainer.
Settings.countThreshold
setting.
Trainer.vocabCounter
.
AbstractTraining.argContexts
, parses the pattern using Treebank.parseNonterminal(danbikel.lisp.Symbol)
, runs through the resulting list of
augmentations and adds each augmentation symbol to the AbstractTraining.argAugmentations
list.
AbstractTraining.createArgNonterminalsSet()
that adds argument nonterminal patterns, such as *-SBJ, to the
set of argument nonterminals.
AbstractTraining.argNonterminals
data member to be the static set
of argument nonterminals.
Model.histBackOffMap
should be created when
precomputing probabilities.
ModelCollection.modelArr
with the Model
objects that
are contained in this model collection.
ModelCollection
object.
Trainer.posMap
from the Trainer.headEvents
, Trainer.modifierEvents
and Trainer.gapEvents
counts tables.
Trainer.posMap
using information contained in the specified
counts table.
TimeoutServerSocket
constructed with the
serverTimeout
value specified at construction of
this factory and with the specified port.
Socket
object created on the specified
host and port, having set its timeout value to the
clientTimeout
value specified at construction of
this factory.
System.currentTimeMillis
.
Decoder.addUnariesAndStopProbs(int, int)
.
ProbabilityStructure
).InvocationHandler
objects with static factory
methods to provide proxy instances.System.err
the constituents of a
gold-standard parse tree that were found by the parser, according to its
output chart file.System.err
whenever Chart.reclaimItemsInChart()
is invoked.
System.err
whenever Chart.reclaimItemsInChart()
is invoked.
DecoderServer
to get all information and probabilities
required for decoding (parsing).
Decoder
that performs the actual parsing.
Decoder
instance to be created for use by
Parser
and EMParser
classes (and any other
subclass of Parser
).
Training.postProcess(danbikel.lisp.Sexp)
on that parse tree.
CachingDecoderServer
instance used by the decoder
when the Settings.decoderUseLocalProbabilityCache
property
is true
.
Settings.decoderUseCommaConstraint
setting) after performing all beam
widening.
DecoderServer
object.
DecoderServerRemote
instance to be created for use by
Parser
and EMParser
classes (and any other
subclass of Parser
).
DecoderServerRemote
instance with an instance of
CachingDecoderServer
, which caches probability
lookups.
AbstractTraining.identifyArguments(Sexp)
.
Training.identifyArguments(Sexp)
.
AbstractWordFeatures.unknownWordSym
.
BufferedReader
and BufferedWriter
constructors.
alive
method.
alive
method.
Model
class to be created
around ProbabilityStructure
objects when their
ProbabilityStructure.newModel()
method is invoked.
Settings.defaultModelClass
setting.
Settings.defaultModelClass
setting, taking a single
ProbabilityStructure
as its only argument.
Nonterminal
object to represent
all the components of a complex nonterminal annotation: the base label,
any augmentations and any index.
Nonterminal
object to represent
all the components of a complex nonterminal annotation: the base label,
any augmentations and any index.
false
.
Shift
interface that simply shifts
every modifier or word, skipping nothing.getClass().getName() + ".smoothingParams"
.
WordFactory
.Word
objects.
Model.counts
to null
just before
writing this model object to an ObjectOutputStream
.
AbstractTraining.delimAndGapStr
, cached here for efficiency
and convenience.
Model
, as well as for all
internal Model
instances.
Model
and optionally for
all internal Model
instances.
ModelCollection
object.
Event
objects are discarded by the databases contained with Model
objects.
Settings.derivedCountThreshold
setting.
Model.deriveCounts(CountsTable,Filter,double,FlexibleMap,boolean)
, but
diversity counts are now derived directly by that method.
Model.deriveCounts(CountsTable,Filter,double,FlexibleMap,boolean)
, but
histories are now derived directly by that method.
Trainer.deriveCounts(double,FlexibleMap)
to derive
counts for all Model
instances contained within a ModelCollection
.
GapEvent.toHead
,
GapEvent.toLeft
, GapEvent.toRight
}.
Constants.LEFT
indicates a left-to-right scan, and a value equal to
Constants.RIGHT
indicates a right-to-left scan.
BiCountsTable
returned by CountsTrio.history()
.
Model
that owns an
instance of this class ought to call its Model.cleanup()
method at
the end of execution of its deriveCounts
method.
Model
class needs to invoke
its cleanup method at the end of its deriveCounts
method.
Trainer.main(java.lang.String[])
after all observations are
collected via any calls to Trainer.readStats(File)
,
Trainer.readStats(SexpTokenizer)
and
Trainer.train(SexpTokenizer,boolean,boolean)
.
Model
object should not add new parameters when deriving counts by consulting
the smoothing parameters from ProbabilityStructure.smoothingParametersFile()
.
Settings.dontAddNewParams
setting.
Model
, when smoothing parameters
from a previous training run, should not add new parameters when deriving
counts.
Training.postProcess(Sexp)
on the tree.
Settings.countThreshold
.
UnsupportedOperationException
, since pruning is
inappropriate when performing the E-step of the Inside-Outside
algorithm.
Settings.downcaseWords
setting.
Settings.downcaseWords
.
Settings.downcaseWords
setting.
CKYItem.start()
if the specified side is
Constants.LEFT
or the value of CKYItem.end()
otherwise.
DecoderServer
to get all information and probabilities
required for decoding (parsing).
DecoderServerRemote
instance constructed using the specified derived data
filename.
DecoderServerRemote
instance for probability lookups and for other
resources needed by the decoder.
true
if and only if there are zero requirements
in this subcat bag.
true
if all requirements of this subcat frame have
been met.
true
if and only if there are zero requirements
in this subcat bag.
true
if this stack contains no elements.
Subcats.get()
.
minCapacity
.
size
is greater than 1, this method
ensures that the underlying Sexp
is a
SexpList
(creating a new SexpList
if
necessary) and pre-allocates space in that SexpList
.
ensureCapacity(size)
.
Subcat
objects only support requirements of a single
type (Symbol
), this method is an alias for
SexpList.ensureCapacity(int)
.
true
if the specified object is not null
and is an instance of SexpList
where the underlying lists
are of the same size and contain Sexp
objects that are
equal.
true
if and only if the specified object is of
type BrokenSubcatBag
and has the same number of requirement
categories and has the same counts for each of those requirement
categories.
true
if and only if the specified object is
also an instance of a CKYItem
and all elements of
this CKYItem
are equal to those of the specified
CKYItem
, except their left and right children lists
and their log probability values.
true
if and only if the specified object is
also an instance of a CKYItem
and all elements of
this CKYItem
are equal to those of the specified
CKYItem
, except their left and right children lists
and their log probability values.
true
if and only if the specified object is
also an instance of a CKYItem
and all elements of
this CKYItem
are equal to those of the specified
CKYItem
, except their left and right children lists
and their log probability values.
EMItem
.
true
if and only if the following three
conditions are met:
the specified object is an instance of Event
the specified object supports the same and only the same types
of components as this Event
object
the abstract lists of each type for this object and the
specified object are of equal length and are pairwise equal in
their items
true
if the specified object is an instance of
a GapEvent
object containing data members which are all
pairwise-equal with the data members of this GapEvent
object, according to each data member's equals(Object)
method.
true
if the specified object is an instance of
a HeadEvent
object containing data members which are all
pairwise-equal with the data members of this HeadEvent
object, according to each data member's equals(Object)
method.
true
if the specified object is an instance of
a ModifierEvent
object containing data members which are all
pairwise-equal with the data members of this ModifierEvent
object, according to each data member's equals(Object)
method.
Sexp
of the two objects equal
when one is a symbol and the other is a list of length 1
containing that symbol.
true
if and only if the specified object is of
type SubcatBag
and has the same number of requirement
categories and has the same counts for each of those requirement
categories.
true
if and only if the specified object is an
instance of SubcatList
whose underlying list is equal
to that of this object, as determined by SexpList.equals(Object)
.
true
if obj
is an instance of
Transition
and has future and history components that
are respectively equal to this object's future and history components.
FixedSizeList
to the specified object
for equality.
true
if the specified object is an instance of
IntCounter
and if its count is the same as that of
this IntCounter
object, false
otherwise.
true
if the specified object is an instance of
an IntPair
whose corresponding two integers are equal
to this IntPair
's two integers.
true
if and only if
the specified object is an instance of Pair
and
if this.first
and ((Pair)obj).first
are
either both null
or are equal as determined by the
equals
method of this.first
if this.second
and ((Pair)obj).second
are
either both null
or are equal as determined by the
equals
method of this.second
System.err
for error messages that might
contain encoding-specific characters.
PrintWriter
object wrapped around System.err
for
printing in the proper character encoding.
Model.histBackOffMap
(debugging method).
Model
without adding the log-probabilities of the internal Model
objects.
Model
without multiplying the probabilities of the internal Model
objects.
TrainerEvent
object.
TrainerEvent
object.
TrainerEvent
object contained by this map entry.
Consumer
interface (part of the Switchboard
framework) for counting events (TrainerEvent
instances) produced as
part of the E-step of the EM algorithm (Inside-Outside).CountsTable
objects containing counts of
TrainerEvent
objects to a file or an output stream.EventCountsWriter
using the specified output
stream to output CountsTable
instances containing counts of TrainerEvent
objects.
EventCountsWriter
using the specified output
stream, encoding and buffer size to output CountsTable
instances
containing counts of TrainerEvent
objects.
EventCountsWriter
by creating a Writer
for
the specified filename, using the specified encoding, buffer size and
append options.
EventCountsWriterFactory
.
StringBuffer
.
StringBuffer
.
UnicastRemoteObject.exportObject
.
AbstractClient.tolerateFaults(int, int, boolean)
or AbstractClient.getFaultTolerantServer(int, int, boolean)
methods.
AbstractClient.tolerateFaults(int, int, boolean)
or
AbstractClient.getFaultTolerantServer(int, int, boolean)
method.
Word.word
.
null
if no features
have been set for this word.
TrainerEvent
objects to
observed counts, backed by a file of the form output by
Trainer.writeStats(java.io.File)
.TrainerEvent
map for events of the
specified type and using the specified file.
TrainerEvent
map for events of the
specified type and using the specified file.
toFind
in the characters
contained in the string buffer sb
.
toFind
at or after
startIdx
in the characters of the string buffer
sb
.
true
if at least one satisfying constraint should
be found for every chart item, false
otherwise.
true
, since a satisfying constraint must be found
for every chart item.
true
, since a satisfying constraint must be found
for every chart item.
ConstraintSet.findAtLeastOneSatisfying()
,
if there are constraints for the current sentence; otherwise, this
data member will be set to false.
System.err
which constituents of the specified
gold-standard parse tree were found by the parser, according to its output
chart file.
System.err
which constituents of the specified
gold-standard parse tree were found by the parser, according to the
specified chart.
System.err
which constituents of the specified
gold-standard parse tree were found by the parser, according to the
specified chart.
lhs -> rhs
.
lhs -> rhs
.
lhs -> rhs
.
lhs -> rhs
.
lhs → rhs
.
lhs -> rhs
.
true
if every chart item generated must violate
none of the constraints in this constraint set, false
otherwise.
false
, since this type of constraint set guarantees
consistency among its constraints, meaning that, since every chart item
must have an assigned, satisfying constraint, there cannot be any
constraint violations, and therefore no such violation-checking needs
to occur during decoding.
false
, since this type of constraint set guarantees
consistency among its constraints, meaning that, since every chart item
must have an assigned, satisfying constraint, there cannot be any
constraint violations, and therefore no such violation-checking needs
to occur during decoding.
get(0)
).
FixedSizeList
instances.FixedSizeList
implementation for a singleton list (a list with only
one element).Training.relabelSubjectlessSentences(Sexp)
when the subjectless sentence
node has children prior to its head child that are arguments.
Event
and
MutableEvent
interfaces were re-worked to include
methods to add and iterate over event components and the
SexpEvent
class was retrofitted to these new
specifications, this object became superfluous, as
SexpEvent
objects can now be efficiently constructed
directly, by using the SexpEvent.add(Object)
method.
SexpEvent
array to represent futures;
the array will be initialized to have the size of ProbabilityStructure.numLevels()
.
SexpSubcatEvent
array to represent futures;
the array will be initialized to have the size of
ProbabilityStructure.numLevels()
.
Training.gapAugmentation()
.
GapEvent
object, setting all its
data members to the specified values.
ProbabilityStructure
, to be instantiated by
Trainer
for the gap-generation submodel.
ProbabilityStructure
object for the
gap-generation submodel.
Chart.add
may have a handle onto this item).
Chart.add
may have
a handle onto this item).
Chart.add
may have a handle onto this item).
Sexp
at the specified index.
Symbol
whose string key is
str
.
Symbol
whose integer value is that of
intKey
.
Symbol.add(Integer)
: the specified
int
is first wrapped in an Integer
object and
then added to the internal symbol map.
index
th components of this subcat bag.
SubcatBag
.
SubcatBag
initialized with the requirements
contained in the specified list.
ConstraintSet
object created with its default
constructor.
ConstraintSet
object created with its one-argument
constructor.
ConstraintSet
object created with its default
constructor.
ConstraintSet
object created with its one-argument
constructor, using the specified S-expression.
LexTreeConstraintSet
instance.
PartialLexTreeConstraintSet
object.
PartialLexTreeConstraintSet
using the specified
syntactic tree.
Sexp
instance.
UnlexTreeConstraintSet
object.
UnlexTreeConstraintSet
constructed with the specified
syntactic tree.
index
th component of the
specified type from this event.
UnsupportedOperationException
, as the only
way to get values from this specialized cache is through the
getProb(Object)
method.
index
th component of this event.
SexpNumberedObjectReader
constructed with the
specified input stream argument.
SexpNumberedObjectReader
constructed with the
specified arguments.
SexpNumberedObjectReader
constructed with the
specified arguments.
SexpObjectReader
constructed with the
specified input stream argument.
SexpObjectReader
constructed with the
specified arguments.
SexpObjectReader
constructed with the
specified arguments.
index
th component of this event of
the specified type.
index
th components of this subcat bag.
SubcatBag
.
SubcatBag
initialized with the requirements
contained in the specified list.
Subcat
object created with its default constructor.
Subcat
object created with its one-argument
constructor, using the specified list.
SexpList.get(int)
.
SubcatList
.
SubcatList
initialized with the requirements
contained in the specified list.
Subcat
object created with its default constructor.
Subcat
object created with its one-argument
constructor, using the specified list.
Word
object from the specified S-expression, which
must be a list of length 2 or greater, where the first two elements are
symbols.
Word
object from the specified symbols.
Word
object from the specified symbols.
Word
instance constructed from the specified
S-expression.
Word
instance constructed from the specified word and
tag symbols.
Word
instance constructed from the specified word,
tag and feature-vector symbols.
ObjectWriter
using the specified
stream.
ObjectWriter
using the
specified stream.
ObjectWriter
using the
specified stream.
ProbabilityStructure.additionalData
member.
AbstractSwitchboardUser.aliveTimeout
to be a reasonable value.
Boolean.valueOf(String)
.
byte
value associated with the key contained in
this entry.
byte
value of the specified index associated
with the key in this map entry.
byte
value associated with the key contained in
this entry.
byte
value of the specified index associated
with the key in this map entry.
Model
objects.
Model
object.
label
already is in canonical form, it is returned.
label
already is in canonical form, it is returned.
Treebank.getCanonical(Symbol)
when passed the label argument; otherwise, the specified nonterminal
is canonicalized unless it contains augmentations, in which case
it is returned untouched.
label
already is in canonical form, it is returned.
label
already is in canonical form, it is returned.
label
already is in canonical form, it is returned.
label
already is in canonical form, it is returned.
label
already is in canonical form, it is returned.
Word
object for the specified object.
char
value associated with the key contained in
this entry.
char
value of the specified index associated
with the key in this map entry.
char
value associated with the key contained in
this entry.
char
value of the specified index associated
with the key in this map entry.
index
.
Subcat
objects
need to support: Symbol.class
.
Event
is
capable of collecting.
Sexp.class
if the specified type is 0.
Subcat
objects
need to support: Symbol.class
.
Subcat
objects
need to support: Symbol.class
.
null
if this item has no associated constraint.
ConstraintSets.get(Object)
.
ObjectReaderFactory
for numbered objects,
which uses an ObjectInputStream
from which to read objects.
ObjectWriterFactory
for numbered objects,
which uses an ObjectOutputStream
to write objects.
ObjectReaderFactory
for un-numbered
objects, which uses an ObjectInputStream
from which to read
objects.
ObjectWriterFactory
for un-numbered
objects, which uses an ObjectOutputStream
to write objects.
Double.parseDouble(String)
.
double
value associated with the key contained in
this entry.
double
value of the specified index associated
with the key in this map entry.
double
value associated with the key in this
entry.
double
value at the specified index associated
with the key in this entry.
double
value associated with the key contained in
this entry.
double
value of the specified index associated
with the key in this map entry.
getEntry(key)
, returning the map entry for the
specified key.
null
if this map does not contain such a mapping.
null
if this map does not contain such a mapping.
null
if no such entry exists.
null
if this map does not contain such a mapping.
UnsupportedOperationException
because this is an
unmodifiable map.
UnsupportedOperationException
because this is an
unmodifiable map.
TrainerEvent
objects that were written
out in S-expression form.
Settings.serverFailover
, or the
specified fallback default value if that property does not exist.
File
object for the specified filename, or
null
if the specified file does not exist.
File
object for the specified filename, or
null
if the specified file does not exist.
name
is an absolute path
as a resource gotten from the class loader of the specified class
The default settings directory is described in the documentation
for Settings.settingsDirOverride
.
float
value associated with the key contained in
this entry.
float
value of the specified index associated
with the key in this map entry.
float
value associated with the key contained in
this entry.
float
value of the specified index associated
with the key in this map entry.
Integer
object for this
symbol.
null
, since this extension of Symbol
only stores strings.
Integer
object associated with this Symbol.
Integer.parseInt(String)
.
int
value associated with the key contained in
this entry.
int
value of the specified index associated
with the key in this map entry.
int
value associated with the key in this
entry.
int
value at the specified index associated with
the key in this entry.
int
value associated with the key contained in
this entry.
int
value of the specified index associated
with the key in this map entry.
CKYItem.toSexpInternal(boolean)
, to provide a
layer of abstraction so that the label can include, e.g., head
information.
long
value associated with the key contained in
this entry.
long
value of the specified index associated
with the key in this map entry.
long
value associated with the key contained in
this entry.
long
value of the specified index associated
with the key in this map entry.
Model
instances used
to produce joint probability estimates.
ModelCollection.getModelCacheStats()
.
Model.getCacheStats()
on each Model
contained in
this model collection, and returns the results as a single String
.
Decoder
instance that uses the specified DecoderServerRemote
instance.
DecoderServerRemote
instance).
EMItem
.
double
.
int
.
double
s.
int
s.
String
constructor using the specified derived data filename as the argument.
int
constructor using the specified timeout value as the argument.
ModelCollection.nonterminalArr
member.
ModelCollection.nonterminalMap
member.
UnsupportedOperationException
.
PartialTreeConstraint.fullySatisfied
; otherwise, returns this constraint.
Subcat
s for the context contained in the
specified HeadEvent
.
Double
containing the probability of the specified
key, or null
if the specified key is not in this
cache.
Model
instance (as opposed to one of the
internal Model
instances).
Model
instance, or a structure used by
one of the internal Model
instances.
ProbabilityStructure
object used
during the invocation of
Model.deriveCounts(CountsTable,Filter,double,FlexibleMap)
.
Sexp
objects).
Sexp
objects).
Sexp
objects) that were
punctuation elements that were "raised away" because they were either at
the beginning or end of a sentence.
Sexp
objects) that were
punctuation elements that were "raised away" because they were either at
the beginning or end of a sentence.
Settings.serverMaxRetries
, or the
specified fallback default value if that property does not exist.
Settings.serverRetrySleep
, or the
specified fallback default value if that property does not exist.
Server
for use by a client.
Server
associated with the
specified server ID to the requesting client.
Properties
object.
Properties
) object of the switchboard.
Properties
object.
Properties
object used for various
settings of this switchboard.
short
value associated with the key contained in
this entry.
short
value of the specified index associated
with the key in this map entry.
short
value associated with the key contained in
this entry.
short
value of the specified index associated
with the key in this map entry.
SexpTokenizer
wrapped around the specified file
using the encoding specified by Language.encoding()
and
a buffer size equal to Constants.defaultFileBufsize
.
Symbol
, which, for this type of symbol, is the
Integer
object returned by IntSymbol.getInteger()
.
Symbol
, which, for this type of symbol, is the
String
object returned by StringSymbol.toString()
.
Parser.sentContainsWordsAndTags(SexpList)
.
Settings
.
Settings
.
null
if this span has no items.
getClass().getName() + ".topLevelCacheSize"
to an integer and returns it.
getHistory(trainerEvent, backOffLevel)
and its
future the result of getFuture(trainerEvent, backOffLevel)
.
Transition
objects representing conditional events for
all back-off levels of this model into the specified array, with
trans[0] = zeroLevelTrans
.
UnsupportedOperationException
.
Double
whose value is the double
in this
entry.
Integer
whose value is the int
in this
entry.
UnsupportedOperationException
.
Word
object at the specified index.
Parser.sentContainsWordsAndTags(SexpList)
method.
Settings.modelDoPruning
.
ProbabilityStructure
objects.
Constants.logOfZero
and to allow other hard constraints (that
amount to implicit log of zero probability estimates).
UnsupportedOperationException
.
tree
has no gap (trace), or the index of the
trace otherwise.
true
if and only if label
has a
gap augmentation as added by AbstractTraining.addGapInformation(Sexp)
.
true
if and only if label
has a
gap augmentation as added by Training.addGapInformation(Sexp)
.
CKYItem.equals(java.lang.Object)
method.
System.identityHashCode(this)
.
CKYItem.MappedPrevModBaseNPAware.equals(java.lang.Object)
method.
CKYItem.PrevModIsStart.equals(java.lang.Object)
method.
Sexp
object.
first
and second
are the two
integers of this integer pair.
0x7fffffff
.
FlexibleMap
interface.double
values.default load factor
.
default capacity
and
load factor
.
double
.double
s.
double
s.
int
values.default load factor
.
default capacity
and load factor
.
int
.int
s.
int
s.
AbstractMapToPrimitive.Entry
that
adds a next pointer and an int
to cache the hash value of the
key held by this entry.Object
instances as keys with ordered
pairs of double
s as values.default load factor
.
default capacity
and
load factor
.
double
s.double
s.
double
s.
Object
instances as keys with ordered
pairs of int
s as values.default load factor
.
default capacity
and
load factor
.
int
s.int
s.
int
s.
false
,
so that the default implementation of addBaseNPs(Sexp)
never considers an NP to be a possessive NP.
- hasPossessiveChild(Sexp) -
Method in class danbikel.parser.lang.AbstractTraining
- Returns
true
if tree
contains a child for which
Treebank.isPossessivePreterminal(Sexp)
returns
true
, false
otherwise.
- hasTreeStructure() -
Method in interface danbikel.parser.constraints.ConstraintSet
- Returns
true
if this constraint set forms a tree structure.
- hasTreeStructure() -
Method in class danbikel.parser.constraints.PartialTreeConstraintSet
- Returns
true
, since this type of constraint set does,
indeed, have a tree structure.
- hasTreeStructure() -
Method in class danbikel.parser.constraints.UnlexTreeConstraintSet
- Returns
true
, since this type of constraint set does,
indeed, have a tree structure.
- head() -
Method in class danbikel.parser.GapEvent
- Returns the head nonterminal label.
- head() -
Method in class danbikel.parser.HeadEvent
- Returns the head nonterminal label of this head event.
- head() -
Method in class danbikel.parser.ModifierEvent
- Returns the head child nonterminal label.
- headAdjacent() -
Method in class danbikel.parser.ModifierEvent
- Returns whether the current modifier is adjacent to the head child.
- headChild -
Variable in class danbikel.parser.CKYItem
- The item representing the head child of the tree node represented by this
chart item, or
null
if this item represents a
preterminal.
- headChild() -
Method in class danbikel.parser.CKYItem
- Returns the head child item of this item.
- headChild() -
Method in class danbikel.parser.HeadTreeNode
- Gets the head child of this node.
- HeadEvent - Class in danbikel.parser
- A class to represent the head generation event implicit in the models
supported by this parsing package.
- HeadEvent(Sexp) -
Constructor for class danbikel.parser.HeadEvent
- Contructs a new object from the specified S-expression.
- HeadEvent(Word, Symbol, Symbol, SexpList, SexpList) -
Constructor for class danbikel.parser.HeadEvent
- Constructs a new
HeadEvent
object, setting all its data
members to the specified values.
- HeadEvent(Word, Symbol, Symbol, Subcat, Subcat) -
Constructor for class danbikel.parser.HeadEvent
- Constructs a new
HeadEvent
object, settings all its data
members to the specified values.
- headEvents -
Variable in class danbikel.parser.Trainer
- A table for storing counts of head-generation events.
- headEventSym -
Static variable in class danbikel.parser.Trainer
- The label for head nonterminal generation events.
- headEventToCollins(HeadEvent) -
Static method in class danbikel.parser.util.TrainerEventToCollins
-
- HeadFinder - Class in danbikel.parser.arabic
- A class to find heads for context-free productions in Arabic syntax trees.
- HeadFinder() -
Constructor for class danbikel.parser.arabic.HeadFinder
- Constructs an Arabic head-finding object, getting the name of the head
table from the value of
Settings.get(Settings.headTablePrefix + Language.getLanguage())
.
- HeadFinder(Sexp) -
Constructor for class danbikel.parser.arabic.HeadFinder
- Constructs an Arabic head-finding object with the specified head table.
- HeadFinder - Class in danbikel.parser.chinese
- A class for determining the head node on the right-hand sides of Chinese
parse tree productions.
- HeadFinder() -
Constructor for class danbikel.parser.chinese.HeadFinder
- Constructs an Chinese head-finding object, getting the name of the head
table from the value of
Settings.get(Settings.headTablePrefix + Language.getLanguage())
.
- HeadFinder(Sexp) -
Constructor for class danbikel.parser.chinese.HeadFinder
- Constructs an Chinese head-finding object with the specified head table.
- HeadFinder - Class in danbikel.parser.english
- Reads a series of heuristics to determine the distinguished head child of a
context-free production (a parent and its ordered list of children in
a syntax tree).
- HeadFinder() -
Constructor for class danbikel.parser.english.HeadFinder
- Constructs an English head-finding object, getting the name of the head
table from the value of
Settings.get(Settings.headTablePrefix + Language.getLanguage())
.
- HeadFinder(Sexp) -
Constructor for class danbikel.parser.english.HeadFinder
- Constructs an English head-finding object with the specified head table.
- HeadFinder - Interface in danbikel.parser
- Specifies the methods for the head-finding component of a language package.
- headFinder -
Variable in class danbikel.parser.lang.AbstractTraining
- Holds the value of
Language.headFinder()
.
- headFinder() -
Static method in class danbikel.parser.Language
- Gets the
HeadFinder
object for the current language.
- headFinderClass -
Static variable in class danbikel.parser.Settings
- The property to specify the fully-qualified name of the class that
extends
HeadFinder
in a language package.
- headFinderRandomProb -
Static variable in class danbikel.parser.Settings
- The property to specify a probability that the method
AbstractHeadFinder.defaultFindHead(danbikel.lisp.Symbol,danbikel.lisp.SexpList)
should return a randomly-selected head-child index.
- headFinderWarnDefaultRule -
Static variable in class danbikel.parser.Settings
- The property to specify whether the method
AbstractHeadFinder.defaultFindHead(danbikel.lisp.Symbol,danbikel.lisp.SexpList)
issues a warning whenever it needs to use the default head-finding rule.
- headFindInstructions -
Variable in class danbikel.parser.lang.AbstractHeadFinder
- The map of parent nonterminals to their arrays of
AbstractHeadFinder.HeadFindInstruction
.
- headLabel() -
Method in class danbikel.parser.CKYItem.BaseNPAware
-
- headLabel() -
Method in class danbikel.parser.CKYItem
- Returns the root nonterminal label of the derivation of this item's
head child.
- headModel -
Variable in class danbikel.parser.ModelCollection
- The model for generating a head nonterminal given its (lexicalized)
parent.
- headModel() -
Method in class danbikel.parser.ModelCollection
- Returns the head-generation model.
- headModel -
Variable in class danbikel.parser.Trainer
- The head-generation model.
- HeadModelStructure1 - Class in danbikel.parser.ms
-
- HeadModelStructure1() -
Constructor for class danbikel.parser.ms.HeadModelStructure1
-
- headModelStructureClass -
Static variable in class danbikel.parser.Settings
- The property to specify the fully-qualified name of a class that
extends
ProbabilityStructure
, to be instantiated by
Trainer
for the head-generation submodel.
- headModelStructureNumber -
Static variable in class danbikel.parser.Settings
- The property to specify the model structure number to use when
creating the
ProbabilityStructure
object for the
head-generation submodel.
- headPostSym -
Static variable in class danbikel.parser.lang.AbstractTraining
- The symbol that is a possible mapping
AbstractTraining.argContexts
to indicate
to choose a child relative to the right side of the head as an argument.
- headPostSym() -
Method in class danbikel.parser.lang.AbstractTraining
- The symbol that is a possible mapping
AbstractTraining.argContexts
to indicate to
choose a child relative to the right side of the head as an argument.
- headPreSym -
Static variable in class danbikel.parser.lang.AbstractTraining
- The symbol that is a possible mapping
AbstractTraining.argContexts
to indicate
to choose a child relative to the left side of the head as an argument.
- headPreSym() -
Method in class danbikel.parser.lang.AbstractTraining
- The symbol that is a possible mapping
AbstractTraining.argContexts
to indicate
to choose a child relative to the left side of the head as an argument.
- headSuffix() -
Method in interface danbikel.parser.HeadFinder
- The suffix to append to nodes that are the head children of their
respective parents when marking heads via
HeadFinder.addHeadInformation(Sexp)
.
- headSuffix -
Static variable in class danbikel.parser.lang.AbstractHeadFinder
- The augmentation for new head nodes added by
AbstractHeadFinder.addHeadInformation(danbikel.lisp.Sexp)
.
- headSuffix() -
Method in class danbikel.parser.lang.AbstractHeadFinder
- Returns the string
"-HEAD"
.
- headSym -
Static variable in class danbikel.parser.lang.AbstractTraining
- The symbol that is a possible mapping in
AbstractTraining.argContexts
to indicate
to choose a child relative to the head as an argument.
- headSym() -
Method in class danbikel.parser.lang.AbstractTraining
- Returns the symbol used in the
AbstractTraining.argContexts
map to identify
an offset from the head child.
- headTablePrefix -
Static variable in class danbikel.parser.Settings
- The prefix string used to specify a language's head table
property.
- headToParentMap() -
Method in class danbikel.parser.CachingDecoderServer
-
- headToParentMap -
Variable in class danbikel.parser.Decoder
- A map from futures of the last back-off level of the head generation model
to possible history contexts.
- headToParentMap() -
Method in class danbikel.parser.DecoderServer
-
- headToParentMap() -
Method in interface danbikel.parser.DecoderServerRemote
- A mapping from head labels to possible parent labels.
- headToParentMap -
Variable in class danbikel.parser.ModelCollection
- A mapping from head labels to possible parent labels.
- headToParentMap() -
Method in class danbikel.parser.ModelCollection
- Returns a mapping from head labels to possible parent labels.
- headToParentMap -
Variable in class danbikel.parser.Trainer
- A map of head child nonterminals to their observed parent nonterminals.
- HeadTreeNode - Class in danbikel.parser
- Provides a convenient data structure for navigating a parse tree in
which heads have been found and percolated up through the tree.
- HeadTreeNode(Sexp) -
Constructor for class danbikel.parser.HeadTreeNode
- Constructs a new instance from the specified parse tree.
- headTreeNodeToString(HeadTreeNode) -
Static method in class danbikel.parser.util.DebugChart
- Returns a string of the form [start,end,label<headWord>,
<headChild>] where <headWord> is the head word
and where <headChild> is either a string of the form
[start,end,label] or null if the specified
HeadTreeNode
is a preterminal.
- headWord -
Variable in class danbikel.parser.CKYItem
- The head word of this chart item.
- headWord() -
Method in class danbikel.parser.CKYItem
- Returns the head word of this chart item.
- headWord -
Variable in class danbikel.parser.constraints.LexTreeConstraint
- The head word associated with this constraint.
- headWord -
Variable in class danbikel.parser.constraints.PartialLexTreeConstraint
- The head word associated with this constraint.
- headWord() -
Method in class danbikel.parser.GapEvent
- Returns the head word.
- headWord() -
Method in class danbikel.parser.HeadEvent
- Returns the head word of this head event.
- headWord() -
Method in class danbikel.parser.HeadTreeNode
- Gets the head word for this node.
- headWord() -
Method in class danbikel.parser.ModifierEvent
- Returns the head word of the head child being modified.
- headWord() -
Method in class danbikel.parser.PriorEvent
- Returns the head word of this event.
- headWord() -
Method in interface danbikel.parser.TrainerEvent
- Returns the head word object associated with an event, or
null
if this TrainerEvent
has no such object.
- headWordIdx() -
Method in class danbikel.parser.CKYItem
- Recursively computes the index of the head word of this derivation.
- headWordIdx() -
Method in class danbikel.parser.HeadTreeNode
- Gets the index of the head word for this node.
- hist -
Static variable in class danbikel.parser.CountsTrio
- The constant to be used as an index when adding or retrieving history
counts from the
BiCountsTable
returned by CountsTrio.history()
.
- histBackOffMap -
Variable in class danbikel.parser.Model
- A set of
Model.numLevels
- 1
maps, where map
i is a map from back-off level i histories to
i + 1 histories.
- histories -
Variable in class danbikel.parser.ProbabilityStructure
- A reusable
SexpEvent
array to represent history
contexts; the array will be initialized to have the size of
ProbabilityStructure.numLevels()
.
- historiesToPrune -
Variable in class danbikel.parser.Model
- A set of sets used to collect histories that are to be pruned.
- historiesWithSubcats -
Variable in class danbikel.parser.ProbabilityStructure
- A reusable
SexpSubcatEvent
array to represent
histories; the array will be initialized to have the size of
ProbabilityStructure.numLevels()
.
- history() -
Method in class danbikel.parser.CountsTrio
- Gets the
CountsTable
for histories counts and diversity
statistics.
- history() -
Method in class danbikel.parser.PriorEvent
- Returns the same symbol for all instances of this class, so that priors
may be computed via the same mechanism as conditional probabilities: if
the conditioning context is the same for all events counted, then the MLEs
for those conditional events are the same as would be the MLEs for the
prior probabilities of the predicted events.
- history() -
Method in class danbikel.parser.Transition
- Gets the history event of this transition object.
- historyList -
Variable in class danbikel.parser.ProbabilityStructure
- Deprecated. Ever since the
Event
and
MutableEvent
interfaces were re-worked to include
methods to add and iterate over event components and the
SexpEvent
class was retrofitted to these new
specifications, this object became superfluous, as
SexpEvent
objects can now be efficiently constructed
directly, by using the SexpEvent.add(Object)
method.
- host() -
Method in class danbikel.parser.CachingDecoderServer
-
- host() -
Method in class danbikel.switchboard.AbstractSwitchboardUser
- Returns the host on which this switchboard user is running.
- host() -
Method in interface danbikel.switchboard.SwitchboardUser
- Returns the hostname on which this switchboard user is running.
SexpTokenizer
instance where the “ordinary
characters’ (metacharacters) are '[' and ']'.
DecoderServerRemote
instance.
TrainerEvent
objects from the specified input file.
int
that may be incremented or decremented.IntCounter
with an initial value of zero.
IntCounter
with the specified initial value.
Switchboard
.
Switchboard
.
Model
instance that uses interpolated Knesser-Ney
smoothing instead of the default smoothing method when estimating
probabilities.
IntPair
object with both integers
equal to 0.
IntPair
containing the specified integers.
IntSymbol
objects associate integers with unique references.Externalizable
interface.
Integer.TYPE
.
true
if s
is composed only of
characters for which Character.isDigit(char)
returns true
;
returns false
otherwise.
true
if s
is composed only of
characters for which Character.isLetterOrDigit(char)
returns
true
; returns false
otherwise.
true
if and only if all the elements of this list are
Symbol
objects.
true
if and only if label
has an
argument augmentation as added by AbstractTraining.identifyArguments(Sexp)
.
true
if the specified nonterminal label has an
argument augmentation.
true
if the specified nonterminal label has an
argument augmentation.
true
if and only if label
has an
argument augmentation as added by Training.identifyArguments(Sexp)
.
true
if the specified nonterminal label has an
argument augmentation.
true
if and only if the specified nonterminal
label has an argument augmentation preceded by the canonical
augmentaion delimiter.
true
if the specified word is a comma.
true
if the specified word is a comma.
true
if label
is equal to the symbol
whose print name is "CONJ"
.
true
if label
is equal to the symbol
whose print name is "CC"
.
true
if label
is equal to the symbol
whose print name is "CC"
.
true
if label
is equal to the symbol
whose print name is "CC"
.
true
if the canonical version of the specified label
is a conjunction tag or nonterminal in a particular Treebank.
true
if the canonical version of the specified label
is a conjunction tag or nonterminal in a particular Treebank.
true
if a non-head child of the specified
tree is a conjunction, and that conjunction is either post-head
but non-final, or immediately pre-head but non-initial (where
"immediately pre-head" means "at the first index
less than headIdx
that is not punctuation, as determined
by Treebank.isPunctuation(Symbol)
).
UnsupportedOperationException
.
false
under all circumstances, as though
we didn't know about Mike's hack for the comma-pruning rule that says that
commas that occur after left parens and before right parens (or the end
of the sentence) are not considered commas for the purposes of comma
pruning.
true
if the specified word is a left
parenthesis.
true
if the specified word is a left
parenthesis.
true
if this is an instance of a
SexpList
, false
otherwise.
true
, because this class and any of its subclasses
represent lists.
false
, as no instance of a subclass of this abstract
base class can be a list.
UnsupportedOperationException
.
true
if the canonical version of the specified label
is an NP for the Arabic Treebank.
true
if the canonical version of the specified label
is an NP for for Chinese Treebank.
true
if the canonical version of the specified label
is an NP for for English Treebank.
true
if the canonical version of the specified label
is an NP for for English Treebank.
true
if the canonical version of the specified label
is an NP for this language’s Treebank.
true
if the canonical version of the specified label
is an NP for the current language's Treebank.
true
if the specified S-expression represents a
preterminal whose terminal element is the null element
("-NONE-"
) for the Penn Arabic Treebank.
true
if the specified S-expression represents a
preterminal whose terminal element is the null element
("-NONE-"
) for the Chinese Treebank.
true
if the specified S-expression represents a
preterminal whose terminal element is the null element
("-NONE-"
) for the Penn Treebank.
true
if the specified S-expression represents a
preterminal whose terminal element is the null element
("-NONE-"
) for the Penn Treebank.
true
if the specified S-expression represents
a preterminal whose terminal element is the null element for this
language’s Treebank.
true
if the specified S-expression represents
a preterminal whose terminal element is the null element for the current
language's Treebank.
true
if the specified S-expression represents
a preterminal that is the possessive part of speech.
true
if the specified S-expression represents
a preterminal that is the possessive part of speech.
true
if the specified S-expression represents
a preterminal that is the possessive part of speech.
true
if the specified S-expression represents
a preterminal that is the possessive part of speech.
true
if the specified S-expression represents
a preterminal that is the possessive part of speech.
true
if the specified S-expression represents
a preterminal that is the possessive part of speech.
true
if tree
represents a preterminal
subtree (part-of-speech tag and word).
true
if tree
represents a preterminal
subtree (part-of-speech tag and word).
true
if this item represents a preterminal.
true
if tree
represents a preterminal
subtree (part-of-speech tag and word).
true
if tree
represents a preterminal
subtree (part-of-speech tag and word).
tree
represents a preterminal subtree in the
parse trees for this language's Treebank.
tree
represents a preterminal subtree in the
parse trees for this language's Treebank.
true
if the specified S-expression is a preterminal
whose part of speech is ","
or
":"
.
true
if the specified S-expression is a preterminal
whose part of speech is ","
or
".
- isPuncToRaise(Sexp) -
Method in class danbikel.parser.english.BrokenTreebank
- Returns
true
if the specified S-expression is a preterminal
whose part of speech is ","
or
":"
.
- isPuncToRaise(Sexp) -
Method in class danbikel.parser.english.Treebank
- Returns
true
if the specified S-expression is a preterminal
whose part of speech is ","
or
":"
.
- isPuncToRaise(Sexp) -
Method in class danbikel.parser.lang.AbstractTreebank
- Returns
true
if the specified S-expression represents
a preterminal and a part-of-speech tag that indicates punctuation
to be raised when running Training.raisePunctuation(Sexp)
.
- isPuncToRaise(Sexp) -
Method in interface danbikel.parser.Treebank
- Returns
true
if the specified S-expression represents
a preterminal and a part-of-speech tag that indicates punctuation
to be raised when running Training.raisePunctuation(Sexp)
.
- isPunctuation(Symbol) -
Method in class danbikel.parser.arabic.Treebank
-
- isPunctuation(Symbol) -
Method in class danbikel.parser.chinese.Treebank
-
- isPunctuation(Symbol) -
Method in class danbikel.parser.english.BrokenTreebank
-
- isPunctuation(Symbol) -
Method in class danbikel.parser.english.Treebank
-
- isPunctuation(Symbol) -
Method in class danbikel.parser.lang.AbstractTreebank
- Returns
true
if the specified part of speech tag is one
for which AbstractTreebank.isPuncToRaise(Sexp)
would return true
.
- isPunctuation(Symbol) -
Method in interface danbikel.parser.Treebank
- Returns
true
if the specified part of speech tag is one
for which Treebank.isPuncToRaise(Sexp)
would return true
.
- isRightParen(Symbol) -
Method in class danbikel.parser.arabic.Treebank
-
- isRightParen(Symbol) -
Method in class danbikel.parser.chinese.Treebank
-
- isRightParen(Symbol) -
Method in class danbikel.parser.english.BrokenTreebank
- This method returns
false
under all circumstances, as though
we didn't know about Mike's hack for the comma-pruning rule that says that
commas that occur after left parens and before right parens (or the end
of the sentence) are not considered commas for the purposes of comma
pruning.
- isRightParen(Symbol) -
Method in class danbikel.parser.english.Treebank
-
- isRightParen(Symbol) -
Method in class danbikel.parser.lang.AbstractTreebank
- Returns
true
if the specified word is a right
parenthesis.
- isRightParen(Symbol) -
Method in interface danbikel.parser.Treebank
- Returns
true
if the specified word is a right
parenthesis.
- isSatisfiedBy(Item) -
Method in class danbikel.parser.constraints.AbstractConstraint
- Throws an
UnsupportedOperationException
.
- isSatisfiedBy(Item) -
Method in interface danbikel.parser.constraints.Constraint
- Returns whether the specified item satisfies this constraint (optional
operation).
- isSatisfiedBy(Item) -
Method in class danbikel.parser.constraints.PartialTreeConstraint
- Returns
true
if this constraint is satisfied by its local
information.
- isSatisfiedBy(Item) -
Method in class danbikel.parser.constraints.UnlexTreeConstraint
- Returns
true
if this constraint is satisfied by its local
information and either
the specified item represents a preterminal or
the constraints of the specified item's children are identical
to the children of this constraint, and are in the same order
More formally, let us define the term nuclear family of a node
in a tree to refer to the node itself and its (immediately dominated)
sequence of children.
- isSatisfiedByPreterminal(CKYItem) -
Method in class danbikel.parser.constraints.LexTreeConstraint
- Returns
true
if this constraint is locally satisfied by the specified item and if
this constraint's span matches that of the
specified item.
- isSatisfiedByPreterminal(CKYItem) -
Method in class danbikel.parser.constraints.PartialLexTreeConstraint
- Returns
true
if this constraint is locally satisfied by the specified item and
if this constraint's span matches that of
the specified item.
- isSatisfiedByPreterminal(CKYItem) -
Method in class danbikel.parser.constraints.PartialTreeConstraint
- Returns
true
.
- isSatisfiedByPreterminal(CKYItem) -
Method in class danbikel.parser.constraints.UnlexTreeConstraint
- Simply returns true and sets this constraint's satisfaction bit to
be true.
- isSentence(Symbol) -
Method in class danbikel.parser.arabic.Treebank
- Returns
true
is the specified nonterminal label represents a
sentence in the Penn Arabic Treebank, that is, if the canonical version of
label
is equal to "S"
.
- isSentence(Symbol) -
Method in class danbikel.parser.chinese.Treebank
- Returns
true
is the specified nonterminal label represents a
sentence in the Penn Treebank, that is, if the canonical version of
label
is equal to "S"
.
- isSentence(Symbol) -
Method in class danbikel.parser.english.BrokenTreebank
- Returns
true
is the specified nonterminal label represents a
sentence in the Penn Treebank, that is, if the canonical version of
label
is equal to "S"
.
- isSentence(Symbol) -
Method in class danbikel.parser.english.Treebank
- Returns
true
is the specified nonterminal label represents a
sentence in the Penn Treebank, that is, if the canonical version of
label
is equal to "S"
.
- isSentence(Symbol) -
Method in class danbikel.parser.lang.AbstractTreebank
- Returns
true
is the specified nonterminal label represents a
sentence in this language’s Treebank.
- isSentence(Symbol) -
Method in interface danbikel.parser.Treebank
- Returns
true
is the specified nonterminal label represents a
sentence in the current language's Treebank.
- isSymbol() -
Method in class danbikel.lisp.Sexp
- Returns
true
if this is an instance of a Symbol
,
false
otherwise.
- isSymbol() -
Method in class danbikel.lisp.SexpList
- Returns
false
, because this class and any of its subclasses
represent lists, not symbols.
- isSymbol() -
Method in class danbikel.lisp.Symbol
- Returns
true
, as any instance of a subclass of this abstract
base class is a symbol.
- isTypeOfSentence(Symbol) -
Method in class danbikel.parser.english.BrokenTraining
- Unlike Mike's definition of a sentence for the purpose of relabeling
subjectless sentences, which includes any label that starts with 'S',
we strictly require here that the label strictly be S, or S with
some augmentations.
- isTypeOfSentence(Symbol) -
Method in class danbikel.parser.english.Training
-
- isTypeOfSentence(Symbol) -
Method in class danbikel.parser.lang.AbstractTraining
- A helper method used by
AbstractTraining.repairBaseNPs(Sexp,int,Sexp)
.
- isValidTree(Sexp) -
Method in class danbikel.parser.arabic.Training
- If the specified tree has a root label with a print name equal to
"X", then this method returns
false
;
otherwise, this method returns the value of the default implementation in
the superclass with the specified tree
(super.isValidTree(tree)
).
- isValidTree(Sexp) -
Method in class danbikel.parser.lang.AbstractTraining
- Returns
true
if tree
is a preterminal (the base
case) or is a list with the first element of type Symbol
(the
node label) and subsequent elements are valid trees (the recursive case).
- isValidTree(Sexp) -
Method in interface danbikel.parser.Training
- Returns whether the specified tree is valid.
- isVerb(Sexp) -
Method in class danbikel.parser.arabic.Treebank
- Returns
true
if preterminal
represents a
terminal with one of the following parts of speech: VB, VBD, VBG,
VBN, VBP or VBZ.
- isVerb(Sexp) -
Method in class danbikel.parser.chinese.Treebank
- Returns
true
if preterminal
represents a
terminal with one of the following parts of speech: VB, VBD, VBG,
VBN, VBP or VBZ.
- isVerb(Sexp) -
Method in class danbikel.parser.english.BrokenTreebank
- Returns
true
if preterminal
represents a
terminal with one of the following parts of speech: VB, VBD, VBG,
VBN, VBP or VBZ.
- isVerb(Sexp) -
Method in class danbikel.parser.english.Treebank
- Returns
true
if preterminal
represents a
terminal with one of the following parts of speech: VB, VBD, VBG,
VBN, VBP or VBZ.
- isVerb(Sexp) -
Method in class danbikel.parser.lang.AbstractTreebank
- Returns
true
if the specified preterminal is that of a verb.
- isVerb(Sexp) -
Method in interface danbikel.parser.Treebank
- Returns
true
if the specified preterminal is that of a verb.
- isVerbTag(Symbol) -
Method in class danbikel.parser.arabic.Treebank
-
- isVerbTag(Symbol) -
Method in class danbikel.parser.chinese.Treebank
-
- isVerbTag(Symbol) -
Method in class danbikel.parser.english.BrokenTreebank
-
- isVerbTag(Symbol) -
Method in class danbikel.parser.english.Treebank
-
- isVerbTag(Symbol) -
Method in class danbikel.parser.lang.AbstractTreebank
- Returns
true
if the specified symbol is the part of speech
tag of a verb.
- isVerbTag(Symbol) -
Method in interface danbikel.parser.Treebank
- Returns
true
if the specified symbol is the part of speech
tag of a verb.
- isViolatedBy(Item) -
Method in class danbikel.parser.constraints.AbstractConstraint
- Throws an
UnsupportedOperationException
.
- isViolatedBy(Item) -
Method in interface danbikel.parser.constraints.Constraint
- Returns whether the specified item violates this constraint
(optional operation).
- isViolatedBy(Item) -
Method in interface danbikel.parser.constraints.ConstraintSet
- Returns whether this constraint set is violated by the specified item
(optional operation).
- isViolatedBy(Item) -
Method in class danbikel.parser.constraints.PartialTreeConstraint
- Throws an
UnsupportedOperationException
, as this operation
is not appropriate for partial tree constraints.
- isViolatedBy(Item) -
Method in class danbikel.parser.constraints.PartialTreeConstraintSet
- Simply throws an
UnsupportedOperationException
, since
violations do not need to be checked for this type of constraint set.
- isViolatedBy(Item) -
Method in class danbikel.parser.constraints.UnlexTreeConstraint
- Throws an
UnsupportedOperationException
.
- isViolatedBy(Item) -
Method in class danbikel.parser.constraints.UnlexTreeConstraintSet
- Simply throws an
UnsupportedOperationException
, since
violations do not need to be checked for this type of constraint set.
- isViolatedByChild(Item) -
Method in class danbikel.parser.constraints.AbstractConstraint
- Throws an
UnsupportedOperationException
.
- isViolatedByChild(Item) -
Method in interface danbikel.parser.constraints.Constraint
- Returns whether the specified child item violates this constraint
(optional operation).
- isViolatedByChild(Item) -
Method in class danbikel.parser.constraints.PartialTreeConstraint
- Returns whether the specified child chart item violates this constraint
by having a span beyond the boundaries of this constraint's span.
- isViolatedByChild(Item) -
Method in class danbikel.parser.constraints.UnlexTreeConstraint
- Returns whether this constraint is violated by the specified child chart
item.
- isWHNP(Symbol) -
Method in class danbikel.parser.arabic.Treebank
- Returns
true
if the canonical version of the specified label
is a WHNP in the Arabic Treebank.
- isWHNP(Symbol) -
Method in class danbikel.parser.chinese.Treebank
- Returns
true
if the canonical version of the specified label
is a WHNP in the Chinese Treebank.
- isWHNP(Symbol) -
Method in class danbikel.parser.english.BrokenTreebank
- Returns
true
if the canonical version of the specified label
is a WHNP in the English Treebank.
- isWHNP(Symbol) -
Method in class danbikel.parser.english.Treebank
- Returns
true
if the canonical version of the specified label
is a WHNP in the English Treebank.
- isWHNP(Symbol) -
Method in class danbikel.parser.lang.AbstractTreebank
- Returns
true
if the canonical version of the specified label
is an NP that undergoes WH-movement in a particular Treebank.
- isWHNP(Symbol) -
Method in interface danbikel.parser.Treebank
- Returns
true
if the canonical version of the specified label
is an NP that undergoes WH-movement in a particular Treebank.
- Item - Class in danbikel.parser
- Skeletal class to represent items in a parsing chart.
- Item() -
Constructor for class danbikel.parser.Item
- Constructs this item to have an initial log-probability of
Constants.logOfZero
.
- Item(double) -
Constructor for class danbikel.parser.Item
- Constructs a chart item with the specified log-probability score.
- itemPool -
Variable in class danbikel.parser.Chart
- The pool of chart items, to be used by the decoder instead of constructing
new chart items while decoding.
- itemToString(CKYItem, Set) -
Static method in class danbikel.parser.util.DebugChart
-
- itemToString(CKYItem) -
Static method in class danbikel.parser.util.DebugChart
-
- iterator() -
Method in class danbikel.lisp.SexpList
- Returns a read-only iterator for the elements of this list.
- iterator() -
Method in class danbikel.parser.BrokenSubcatBag
- Returns an itrerator over the elements of this subcat bag, returning
the canonical version of symbols for each the categories described in
BrokenSubcatBag.add(Symbol)
; for each occurrence of a miscellaneous item
present in this subcat bag, the return value of Training.stopSym()
is returned.
- iterator() -
Method in class danbikel.parser.constraints.PartialTreeConstraintSet
- Returns an iterator over the constraints in this set.
- iterator() -
Method in class danbikel.parser.constraints.UnlexTreeConstraintSet
- Returns an iterator over the constraints in this set.
- iterator() -
Method in interface danbikel.parser.Subcat
- Returns an iterator over the requirements contained in this subcat frame.
- iterator() -
Method in class danbikel.parser.SubcatBag
- Returns an itrerator over the elements of this subcat bag, returning
the canonical version of symbols for each the categories described in
SubcatBag.add(Symbol)
; for each occurrence of a miscellaneous item
present in this subcat bag, the return value of Training.stopSym()
is returned.
- iterator() -
Method in class danbikel.util.SLNode
- Returns an iterator to iterate over the elements of this list.
StreamTokenizer
class.
UnicastRemoteObject
and its members
not to break when generating javadoc API documentation.
Character
class will work.
Model
objects in order
to estimate the probability of some joint event.ProbabilityStructure
objects
for use in a JointModel
instance, or null
if this probability structure should not be composed with a
JointModel
instance.
parse
methods to return.
Settings.keepAllWords
, for efficiency and
convenience.
Settings.keepAllWords
, for efficiency and
convenience.
Settings.keepAllWords
setting.
Settings.keepLowFreqTags
setting.
KeepNodes.main(java.lang.String[])
method that invokes it,
to keep only certain nodes in a tree, deleting all others, except the root
node, which is never deleted.disnP
|| disnQ
),
where D is the Kullback-Leibler divergence (relative
entropy), and where each of the specified arguments is a distribution
of log-probabilities.
ProbabilityStructure
used by this model.
backOffLevel
.
ProbabilityStructure
used by this model.
backOffLevel
.
ProbabilityStructure
used by this model.
get(size() - 1)
).
Constants.LEFT
cached for better readability.
CKYItem
objects that are the children to the left
of the head child, with the head-adjacent child being last.
null
if
there are no left modifier items.
Event
objects to Set
objects,
where each Event
object is the last level of back-off
of the probability structure for left-side subcat generation and the
set contains all possible Subcat
objects for that
most-general context.
ProbabilityStructure
, to be instantiated by
Trainer
for the left subcat-generation submodel.
ProbabilityStructure
object for the
left-subcat-generation submodel.
ProbabilityStructure
, to be instantiated by
Trainer
for the lexical prior submodel.
ProbabilityStructure
object for the
lexical prior submodel.
LexTreeConstraintSet
objects.LexTreeConstraintSet
instances.
SexpList
.
Settings.load(File)
.
Settings.load(InputStream)
.
Properties.load(InputStream)
.
ModelCollection
from the specified file.
ModelCollection
from the specified file.
DecoderServerRemote
instance is local
or remote (an RMI stub).
Double#NEGATIVE_INFINITY
.
Constants.logOfZero
cached for readability.
Model.lambdaPenalty
but modified such thatlogOneMinusLambdaPenalty[i] = Math.log(1 - lambdaPenalty[i])
i: 0 ≤ i < lambdaPenalty.size
.
HeadEvent
.
TrainerEvent
, which should be an instance of
HeadEvent
.
HeadEvent
.
UnsupportedOperationException
.
UnsupportedOperationException
.
Constants.logProbCertain
cached for readability.
TrainerEvent
object).
TrainerEvent
object).
TrainerEvent
object).
DecoderServerRemote.logProbLeftSubcat(int, TrainerEvent)
or
DecoderServerRemote.logProbRightSubcat(int, TrainerEvent)
depending on the value
of side
.
UnsupportedOperationException
.
HeadEvent
object for look-ups in tables.
ModifierEvent
object for look-ups in tables.
ModifierEvent
object for look-ups in tables.
PriorEvent
object for look-ups in tables.
ModifierEvent
object for look-ups in tables.
Model
contained in a ModelCollection
.
Switchboard
instance, using Sexp
object reader factories.
Switchboard
instance, using
Sexp
object reader factories.
Trainer.usageMsg
.
Word
object from the specified preterminal
subtree.
Word
object from the specified preterminal
subtree.
NonterminalMapper
whose concrete type is determined by
the value of the Settings.prevModMapperClass
setting.
NTMapper.map(Symbol)
, since the
NTMapper
class provides the flexibility of using an
internal NonterminalMapper
instance created at run-time
according to the Settings.prevModMapperClass
setting.
MapToPrimitive
map.Integer.MAX_VALUE
.
Server.acceptUnlimitedClients
if this server is willing to accept a
virtually unlimited number of clients (a large maximum value may
be used by the switchboard).
Trainer.main(String[])
).
MutableEvent
objects (used for efficient
event construction).
AbstractSwitchboardUser.getSwitchboard(java.lang.String)
method will
try to get a new Switchboard
when the current instance
has gone down or when registering for the first time.
Model
objects contained by this
model collection, set up by ModelCollection.createModelArray()
.
Model
objects and maps necessary for parsing.ModelCollection
that initially contains
no data.
Model
objects and other resources that describe
an entire parsing model.
Trainer.modelCollection
member of this
trainer with the internal resources constructed by this trainer (such as
all the Model
instances).
Trainer.deriveCounts()
just after it calls
ModelCollection.set(danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.Model, danbikel.parser.CountsTable, danbikel.parser.CountsTable, danbikel.parser.CountsTable, java.util.Map, java.util.Map, java.util.Map, java.util.Map, java.util.Map, java.util.Map, java.util.Set, java.util.Set, danbikel.util.FlexibleMap)
.
Model
instance.
modelList().iterator()
.
Model
objects contained
in this model collection.
Settings.modelDoPruning
is false).
null
, as gap events do not deal with modifier words.
null
, as head events do not deal with modifier words.
null
.
null
if this TrainerEvent
has no such object.
ModifierEvent
object, settings its
data members to the values specified.
ModifierEvent
object, settings its
data members to the values specified.
ModifierEvent
object for use when
outputting training events in the format of Mike Collins’ parser,
settings its data members to the values specified.
ModNonterminalModelStructure5.getFuture(TrainerEvent,int)
has been overridden so
that the future only consists of an unlexicalized modifying nonterminal
label.ProbabilityStructure
, to be instantiated by
Trainer
for the modifying nonterminal-generation submodel.
ProbabilityStructure
object for the
modifying nonterminal-generation submodel.
ProbabilityStructure
, to be instantiated by
Trainer
for the modifying word-generation submodel.
ProbabilityStructure
object for the
modifying word-generation submodel.
Event
that
permit modification of the event object.true
if a unary NP needs to be added above the
specified base NP.
Decoder
that takes two arguments of type int
and of type
DecoderServerRemote
.
CountsTable
instances in which to store the
entropy of every history at every back-off level.
BiCountsTable
instances in which to store the
JS divergence of every history at every back-off level, both to the
previous back-off level and to the zeroeth back-off level.
WordList
object of the specified size.
WordList
object containing Word
objects constructed from the elements of the specified list, using the
Word.Word(Sexp)
constructor.
WordList
object containing the words of the
specified collection.
FixedSizeList
instance.
FixedSizeList
instance whose elements will be that of
the specified collection.
Model
object for this
probability structure.
ModelCollection
.
null
if there is not currently an object to be processed.
null
from the
SwitchboardRemote.nextObject(int)
method.
WordTokenizer.ttype
.
AbstractTraining.prune(Sexp)
.
Training
,
except that it overrides
AbstractTraining.addBaseNPs(Sexp)
to do nothing.Language
.
TrainerEvent
instances that do not
represent preterminals (where the parent is identical to the part-of-speech
tag of the head word).
ModifierEvent
instances where the
modifier is Training.stopSym()
, but allows all other objects.
ModifierEvent
instances where the modifier
is neither Training.stopSym()
nor Training.topSym()
, but
allows all other objects.
base
data member to be
null
, the augmentations
data member to be
a list with no elements and the index
data member to be
-1.
Symbol
objects) that
AbstractTreebank.defaultParseNonterminal(Symbol,Nonterminal)
should use when
determining the base nonterminal label.
Symbol
objects) to
unique integers that are indices in the
nonterminal array.
ProbabilityStructure
, to be instantiated by
Trainer
for the nonterminal prior submodel.
ProbabilityStructure
object for the
nonterminal prior submodel.
CountsTable
of the internal
ModelCollection
object.
TrainerEvent
instances where the parent
nonterminal is not Training.topSym()
.
Trainer.nonTop
and Trainer.nonPreterm
.
Treebank.nonTreebankDelimiter()
.
Settings.decoderOutputHeadLexicalizedLabels
is true.
Treebank.nonTreebankLeftBracket()
.
Settings.decoderOutputHeadLexicalizedLabels
is true.
Settings.decoderOutputHeadLexicalizedLabels
is true.
Treebank.nonTreebankRightBracket()
.
Settings.decoderOutputHeadLexicalizedLabels
is
true.
Settings.decoderOutputHeadLexicalizedLabels
is
true.
AbstractSwitchboardUser.timeout
(set at construction time),
or AbstractSwitchboardUser.defaultTimeout
if timeout
is 0.
Treebank.NPLabel()
, cached for efficiency and
convenience.
Training
, except
that the NPArgThreadTraining.preProcess(Sexp)
method invokes
AbstractTraining.threadNPArgAugmentations(Sexp)
.Language
.
Training
, except
that the NPArgThreadTraining.preProcess(Sexp)
method invokes
AbstractTraining.threadNPArgAugmentations(Sexp)
.Language
.
AbstractTraining.addBaseNPs(Sexp)
should
add as a parent if a base NP is not dominated by an NP.
AbstractTraining.addBaseNPs(Sexp)
should
add as a parent if a base NP is not dominated by an NP.
AbstractTraining.addBaseNPs(Sexp)
should
add as a parent if a base NP is not dominated by an NP.
AbstractTraining.addBaseNPs(Sexp)
should
add as a parent if a base NP is not dominated by an NP.
Training.addBaseNPs(Sexp)
should
add as a parent if a base NP is not dominated by an NP.
Training.addBaseNPs(Sexp)
should
add as a parent if a base NP is not dominated by an NP.
Nonterminal
object for use with
Treebank.parseNonterminal(Symbol,Nonterminal)
.
NTMapper.map(Symbol)
.NumberedObject
object with the
specified object, processed flag and object number.
byte
values associated with the key
in this map entry, or 00 if the implementor does not
associate byte
s with its key
char
values associated with the key
in this map entry, or 0 if the implementor does not
associate char
s with its key
BrokenSubcatBag.size()
.
BrokenSubcatBag.size()
.
Sexp
is a symbol, or the length of the list otherwise.
SexpEvent.numComponents()
, as this Event
implementation supports only one type.
Sexp
objects plus the number of Subcat
objects.
Sexp
components or the number of
Subcat
components that are part of this event.
SubcatBag.size()
.
SubcatBag.size()
.
SexpList.size
.
SexpList.size
.
double
s associated with a key.
double
s associated with a key.
double
values associated with the key
in this map entry, or 0 if the implementor does not
associate double
s with its key
float
values associated with the key
in this map entry, or 0 if the implementor does not
associate float
s with its key
int
s associated with a key.
int
s associated with a key.
int
values associated with the key
in this map entry, or 0 if the implementor does not
associate int
s with its key
ProbabilityStructure
used by this model.
long
values associated with the key
in this map entry, or 0 if the implementor does not
associate long
s with its key
Model
instance.
Model
instances.
Chart.toPrune(int,int,Item)
method.
Settings.numPrevMods
, cached here
for efficiency and convenience.
Settings.numPrevMods
.
Settings.numPrevMods
setting.
Settings.numPrevWords
, cached here
for efficiency and convenience.
Settings.numPrevWords
.
Settings.numPrevWords
setting.
short
values associated with the key
in this map entry, or 0 if the implementor does not
associate short
s with its key
Subcat
objects only support Symbol
objects).
Event
implementation.
Event
implementation supports only one
type.
Event
implementation supports only two
types.
Subcat
objects only support Symbol
objects).
Subcat
objects only support Symbol
objects).
Reader
or InputStream
object.ObjectReader
instances.Writer
or OutputStream
object.ObjectWriter
instances.WordTokenizer.ttype
after it is read.
WordTokenizer.ttype
after it is read.
Nonterminal
object for use with
Treebank.parseNonterminal(Symbol,Nonterminal)
.
UnsupportedOperationException
, because isn't it silly
to try to copy an already file-backed map to a file?
System.out
when training on a Treebank input file.
EventCountsWriter.writeObject(Object)
and by the EventCountsConsumer
class to write a CountsTable
with TrainerEvent
keys as text to a Writer
.
Trainer
object
to System.err
.
System.out
.
Settings.decoderOutputInsideProbs
setting.
Settings.decoderOutputHeadLexicalizedLabels
setting.
System.err
System.err
.
Trainer
object
to System.err
.
Trainer
object
to System.err
.
Pair
object with both data members
set to null
.
Pair
object with the specified two
objects.
null
.
null
if
this event has no such object.
AbstractTreebank.defaultParseNonterminal(Symbol, Nonterminal)
with
the specified arguments.
AbstractTreebank.defaultParseNonterminal(Symbol, Nonterminal)
with
the specified arguments.
AbstractTreebank.defaultParseNonterminal(Symbol, Nonterminal)
with
the specified arguments.
AbstractTreebank.defaultParseNonterminal(Symbol, Nonterminal)
with
the specified arguments.
Nonterminal
object to represent all the
components of a complex nonterminal annotation: the base label, any
augmentations and any index.
AbstractTreebank.parseNonterminal(Symbol)
, except that instead of
returning a newly-created Nonterminal
object, this
method merely modifies the specified Nonterminal
object.
Nonterminal
object to represent all the
components of a complex nonterminal annotation: the base label, any
augmentations and any index.
Treebank.parseNonterminal(Symbol)
, except that instead of
returning a newly-created Nonterminal
object, this
method merely modifies the specified Nonterminal
object.
Parser
instance that will construct an internal
DecoderServer
for its Decoder
to use when parsing.
Decoder
will
use the specified server.
Parser
to be constructed by
the Parser.main(String[])
method of this class.
Switchboard
instance.PartialLexTreeConstraint.PartialLexTreeConstraint(Sexp)
to construct an entire tree of constraints.
PartialLexTreeConstraint
s for a given
tree.PartialLexTreeConstraint
objects forming a tree
structure from the specified syntactic tree.
PartialLexTreeConstraintSet
objects.PartialLexTreeConstraintSet
objects.
parent
.
PartialTreeConstraintSet
objects.PartialTreeConstraintSet
objects.
true
regardless of the value of the specified
object (lets all objects pass through).
true
if this filter allows the specified object to
pass through.
ModelCollection
object.
ModelCollection
object.
Symbol
objects representing words to
SexpList
objects that contain the set of their possible parts of speech
(a list of Symbol
).
Decoder.posMap
.
AbstractHeadFinder.addHeadInformation(danbikel.lisp.Sexp)
.
Decoder.posMap
that is a map of (presumably
closed-class) parts of speech to random example words observed with
the part of speech from which they are mapped.
Decoder.parse
after parsing has finished for a
particular sentence.
Model.estimateLogProbUsingPrecomputed(Transition,int)
is invoked
requesting a probability for an event whose history context has
a base NP (NPB) the parent nonterminal.
Model.estimateLogProbUsingPrecomputed(Transition,int)
is invoked.
Model.precomputeProbs(CountsTable,Filter)
, which is also deprecated.
Model
and for all internal Model
instances.
Settings.precomputeProbs
, cached here
for convenience.
Model.deriveCounts(CountsTable,Filter,double,FlexibleMap,boolean)
.
Transition
object contained as a key within the specified
map entry, where the value is the count of the transition.
Model.precomputeProbs()
.
Model.precomputeProbs(CountsTable,Filter)
, which is also deprecated.
Model
instances that are part of the ModelCollection
of this
trainer.
AbstractHeadFinder.addHeadInformation(danbikel.lisp.Sexp)
.
AbstractTraining.preProcess(Sexp)
method of the superclass, and then provides an
additional preprocessing step by invoking AbstractTraining.threadNPArgAugmentations(Sexp)
.
Training.preProcess(Sexp)
method,
this method selectively invokes only some of the preprocessing methods of
Training
, so as to leave the rest of the transformations
unconstrained.
Training.preProcess(danbikel.lisp.Sexp)
, except
that AbstractTraining.threadNPArgAugmentations(danbikel.lisp.Sexp)
is invoked
after all other preprocessing methods.
TagMap.transformTag(Word)
.
null
if this modifier is
not conjoined.
Decoder.addUnariesAndStopProbs(int, int)
.
NonterminalMapper
instance used by NTMapper
to map nonterminals that are
previously-generated modifiers of some head child nonterminal.
null
.
printLogProbDisn
,
as well as a PrintDisn.main(String[])
method, to print a log-probability
distribution for a particular event in a particular model of a model
collection.Model.pruneHistoriesAndTransitions()
will
output pruned events to a special pruned event log file.
Model.pruneHistoriesAndTransitions()
will
output events that were not pruned to a special pruned event log file.
PriorEvent
object, setting all its
data members to the specified values.
ProbabilityCache
with the specified maximum
capacity and the default replacement strategy.
ProbabilityCache
with the specified maximum
capacity, the specified initial capacity and the default replacement
strategy.
ProbabilityCache
with the specified maximum
capacity, the specified initial capacity, the specified load factor and
the default replacement strategy.
ProbabilityStructure.historyList
to have an initial capacity of
the return value of maxEventComponents
.
Constants.probCertain
.
TrainerEvent
object).
Constants.probImpossible
.
TrainerEvent
object).
TrainerEvent
object).
SexpList
.
AbstractClient.process(Object)
method
and puts the processed objects back to the switchboard, handling
any RMI-related errors along the way.
AbstractClient.processObjects()
and then
AbstractSwitchboardUser.unexportWhenDead()
.
nodesToPrune
.
nodesToPrune
.
Sexp
objects representing preterminals that were
pruned during training.
Sexp
objects) that have been pruned
away.
Sexp
objects representing preterminals that were
pruned during training.
Sexp
objects) that were
punctuation elements that were “raised away” because they were
either at the beginning or end of a sentence.
Sexp
objects) that were "raised
away" by AbstractTraining.raisePunctuation(Sexp)
because they appeared either at
the beginning or the end of a sentence.
Sexp
objects) that were
punctuation elements that were “raised away” because they were
either at the beginning or end of a sentence.
Settings.modelPruningThreshold
.
WordTokenizer.nextToken()
.
UnsupportedOperationException
, as the only
way to add keys to this specialized cache is through the
put(Object,double)
method.
byte
value (at index 0) with the
specified key.
UnsupportedOperationException
.
byte
value (at index 0) with the
specified key.
UnsupportedOperationException
, as this is an
unmodifiable map.
putAndRemove(key, key.hashCode(), probability)
.
TrainerEvent
and its associated probability
into this object's probability cache.
AbstractClient.sleepRandom(int)
,
initialized at construction with a random seed based on the
current time.
tok
.
ObjectInput
instance.
Sexp
object from the specified object stream (to be
implemented by all concrete subclasses).
ObjectInput
instance.
ObjectInput
instance.
SexpEvent
object that was serialized using
SexpEvent.writeExternal(ObjectOutput)
.
SexpTokenizer
instance.
AbstractTraining.argContexts
and
AbstractTraining.semTagArgStopSet
.
Training.tagMapSym
.
NumberedObject
instance constructed from the next
numbered S-expression in the stream or file that this reader wraps.
Reader
or stream.
Model.smoothingParamsFile
instead of deriving values for smoothing parameters.
Model.smoothingParamsFile
instead of deriving values for smoothing parameters.
Trainer.writeStats(Writer)
.
Trainer.readStats(SexpTokenizer)
).
Chart.reclaimItemsInChart()
to allow subclasses
to reclaim each span's collection of chart items.
Settings.Change
interface
to receive an update when one or more settings have changed.
RegistrationException
.
RegistrationException
with the specified
message.
RegistrationException
with the specified
message and nested exception.
true
, it indicates that part of speech
tags that contain any of the patterns in the Training.verbPatterns
array
should be transformed simply into the pattern itself.
AbstractTraining.relabelSubjectlessSentences(Sexp)
so
that we can make the definition of a subjectless sentence
slightly more restrictive: a subjectless sentence not only must
have a null-element child that is marked with the subject
augmentation, but also its head must be a VP (this is
Mike Collins’ definition of a subjectless sentence).
Training.relabelSubjectlessSentences(Sexp)
so that we can make the definition of a subjectless sentence slightly more
restrictive: a subjectless sentence not only must have a null-element child
that is marked with the subject augmentation, but also its head must be a
VP (this is Mike Collins' definition of a subjectless sentence).
Treebank.subjectlessSentenceLabel()
.
Treebank.subjectlessSentenceLabel()
.
Settings.decoderRelaxConstraintsAfterBeamWidening
,
cached here for readability and convenience.
index
.
UnsupportedOperationException
.
UnsupportedOperationException
.
UnsupportedOperationException
.
Nonterminal
object and then
removes all argument augmentations.
Nonterminal
object, and the previous augmentation
delimiter.
Nonterminal
object, and the previous augmentation
delimiter.
Nonterminal
object for temporary
storage.
Model.cleanup()
, which is invoked at the end
of Model.deriveCounts(CountsTable,danbikel.util.Filter,double,danbikel.util.FlexibleMap)
,
can safely remove the specified event from the Model
object's internal counts tables, as the event is not applicable
to any of the probabilities for which the model will produce an estimate.
Model.cleanup()
, which is invoked at the end
of Model.deriveCounts
,
can safely remove the specified event from the Model
object's internal counts tables, as the event is not applicable
to any of the probabilities for which the model will produce an estimate.
UnsupportedOperationException
, as this is an
unmodifiable map.
tree
for
which Treebank.isNullElementPreterminal(Sexp)
returns
true
.
tree
for
which Treebank.isNullElementPreterminal(Sexp)
returns
true
.
UnsupportedOperationException
because this is an
unmodifiable map.
true
if the specified transition contains
either a history or future for which ProbabilityStructure.removeHistory(int,Event)
or ProbabilityStructure.removeFuture(int,Event)
returns true
, respectively.
Decoder.preProcess(danbikel.lisp.SexpList, danbikel.lisp.SexpList)
that removes words from
the specified sentence and Decoder.originalWords
lists, and also
from the specified tags list, if it is not null
.
Training.preProcessTest(danbikel.lisp.SexpList, danbikel.lisp.SexpList, danbikel.lisp.SexpList)
).
Settings.collinsRepairBaseNPs
.
UnsupportedOperationException
.
Settings.trainerReportingInterval
setting.
Constants.logOfZero
.
Settings.restorePrunedWords
setting.
Decoder.restorePrunedWords(Sexp)
.
UnsupportedOperationException
.
AbstractClient.tolerateFaults(int, int, boolean)
or AbstractClient.getFaultTolerantServer(int, int, boolean)
methods.
Constants.RIGHT
cached for better readability.
CKYItem
objects that are the children to the right
of the head child, with the head-adjacent child being last.
null
if
there are no right modifier items.
Event
objects to Set
objects,
where each Event
object is the last level of back-off
of the probability structure for right-side subcat generation and the
set contains all possible Subcat
objects for that
most-general context.
ProbabilityStructure
, to be instantiated by
Trainer
for the right subcat-generation submodel.
ProbabilityStructure
object for the
right-subcat-generation submodel.
Parser.internalInputFilename
is null
, then this method invokes
AbstractClient.processObjectsThenDie()
; otherwise, this method processes Parser.internalInputFilename
and outputs to Parser.internalOutputFilename
by
invoking Parser.processInputFile(String,String)
.
Model.backOffMap
should not be set to
null after probabilities have been precomputed, which means that it will
be saved with this Model
instance (for debugging purposes);
otherwise, Model.backOffMap
is set to null
just after
precomputation of probabilities.
Model.histBackOffMap
should be created when
precomputing probabilities and saved with this Model
for debugging purposes.
TrainerEvent
in the key set of the specified counts table.
Model
object should save the smoothing parameters to the file named by
ProbabilityStructure.smoothingParametersFile()
when precomputing probabilities during
training.
Settings.saveSmoothingParams
setting.
AbstractSwitchboardUser
).
matchTags
array.
matchTags
array.
AbstractTraining.identifyArguments(Sexp)
.
Training.relabelSubjectlessSentences(Sexp)
.
Training.relabelSubjectlessSentences(Sexp)
.
Decoder
to use when parsing.
index
with element
.
name
to value
, using Properties.setProperty(String,String)
.
char
value for the key in this entry to be
the specified character.
char
value for the key in this entry to be
the specified character.
short
value for the key in this entry to be
the specified character.
char
value for the key in this entry to be
the specified character.
char
value for the key in this entry to be
the specified character.
float
value for the key in this entry to be
the specified character.
char
value for the key in this entry to be
the specified character.
double
value associated with the key in this
entry.
int
value associated with the key in this entry.
double
value at the specified index associated with
the key in this entry.
int
value at the specified index associated with
the key in this entry.
char
value for the key in this entry to be
the specified character.
char
value for the key in this entry to be
the specified character.
short
value for the key in this entry to be
the specified character.
char
value for the key in this entry to be
the specified character.
char
value for the key in this entry to be
the specified character.
float
value for the key in this entry to be
the specified character.
char
value for the key in this entry to be
the specified character.
ProbabilityStructure.additionalData
member.
Switchboard.defaultBufSize
).
Model.canonicalEvents
member of this object to be the
specified FlexibleMap
, as well as setting the same member
of all internal Model
objects.
Model.canonicalEvents
member of this object.
index
to be the symbol newLabel
.
Decoder.commaForPruning
.
CKYItem
to this item,
effectively performing a destructive shallow copy of the specified
item into this item.
ObjectReader
or ObjectWriter
instances
created by the switchboard's factories are character-based).
Chart.add
may have a handle
onto this item).
TrainerEvent
has no such object.
Parser.internalInputFilename
and Parser.internalOutputFilename
members of this parsing client to the specified values.
Settings
class.
UnsupportedOperationException
.
UnsupportedOperationException
.
UnsupportedOperationException
.
Trainer.modelCollection
data member of this class to the
object of that type loaded from the specified file.
Trainer.modelCollection
member of this class to the
instance loaded from the specified input stream.
SwitchboardRemote.clientNextObjectInterval
setting from the switchboard and set the AbstractClient.nextObjectInterval
data member to it.
AbstractSwitchboardUser.setPolicyFile(String)
with the value of the
SwitchboardRemote.clientPolicyFile
property obtained from
the specified Properties
object.
AbstractSwitchboardUser.setPolicyFile(Class,String)
with the specified class
and the value of the SwitchboardRemote.clientPolicyFile
property obtained from the specified Properties
object.
AbstractSwitchboardUser.setPolicyFile(String)
with the value of the
SwitchboardRemote.serverPolicyFile
property obtained from
the specified Properties
object.
AbstractSwitchboardUser.setPolicyFile(Class,String)
with the specified class
and the value of the SwitchboardRemote.serverPolicyFile
property obtained from the specified Properties
object.
SwitchboardRemote
class.
Switchboard.setPolicyFile(String)
with the value of the
SwitchboardRemote.switchboardPolicyFile
property obtained from
the specified Properties
object.
Switchboard.setPolicyFile(Class,String)
with the specified class
and the value of the SwitchboardRemote.switchboardPolicyFile
property obtained from the specified Properties
object.
SwitchboardRemote
class.
true
.
Properties
object.
Properties
object.
Switchboard
instance and sets
to be the current run-time settings.
Properties
object.Settings.settingsDirOverride
.
UnsupportedOperationException
.
UnsupportedOperationException
.
Word
object.
Sexp
objects.Sexp
objects.SexpEvent
that contains no data.
SexpEvent
that contains no data, but
whose SexpEvent.ensureCapacity(int)
method has been called with
the specified value.
SexpEvent
using the specified S-expression.
SexpEvent
objects.
Sexp
objects, which are either symbols
or themselves lists.SexpList
with the default initial capacity.
SexpList
with the specified initial capacity.
SexpList
whose initial elements are those
of initialElements
.
SexpList
whose initial elements are those
of initialElements
.
SexpList
where a precomputed, cached
hash value is stored with every instance.HashCache
list.
SexpTokenizer
,
converting S-expressions of the form
(num processed obj), where obj
is a Sexp
and processed is a Symbol
whose print-name is the output of String.valueOf(boolean)
, to
NumberedObject objects.SexpTokenizer
from the specified arguments.
SexpTokenizer
from the specified arguments.
NumberedSentenceReaderFactory
used by
Switchboard
.SexpTokenizer
,
reading each S-expression as a object and returning it when
SexpObjectReader.readObject()
is invoked.SexpTokenizer
from the specified arguments.
SexpTokenizer
from the specified arguments.
ObjectReader
objects
by the Switchboard
class.Sexp
objects from a text file.
Sexp
objects
and zero or one Subcat
object.Sexp
.
SexpSubcatEvent
objects.
WordTokenizer
).SexpTokenizer
with the specified stream
and comment-recognition option.
SexpTokenizer
with the specified stream,
comment-recognition option and set of ordinary characters, which are
actually those characters to be treated as metacharacters (i.e., not
part of tokens, but delimiters of tokens).
SexpTokenizer
with the specified stream
and the default comment-recognition option, which is true
.
SexpTokenizer
around a
BufferedReader
around a FileInputStream
.
SexpTokenizer
around a
BufferedReader
around a FileInputStream
.
SexpTokenizer
around a
BufferedReader
around a FileInputStream
.
SexpTokenizer
around a
BufferedReader
around a FileInputStream
.
SexpTokenizer
around a
BufferedReader
around a InputStreamReader
.
SexpTokenizer
around a
BufferedReader
around a InputStreamReader
.
SexpTokenizer
around a
BufferedReader
around an InputStreamReader
around the stream created by calling url.openStream()
.
SexpTokenizer
around a
BufferedReader
around a InputStreamReader
around the stream created by calling url.openStream()
.
ModelCollection.modWordModel
is being shared (i.e., will be
used) as the last level of back-off for ModelCollection.topLexModel
, as the last
levels of both these models typically estimate
p(w | t).
TrainerEvent.parent()
) is a base
NP and the previous modifier is punctuation.
TrainerEvent.parent()
) is a base NP and the previous modifier is
punctuation.
Shifter
instance to shift the newly-generated
(and therefore previously-generated) modifier into the history, which is a
SexpList
.
Shifter
instance to shift the newly-generated
(and therefore previously-generated) head word into the history, which is a
WordList
.
Shift
interface, allowing a convenient flow-through mechanism to an
internal static Shift
object, the exact type of which is determined
by the value of Settings.shifterClass
.Shift
object to be used by the Shifter
static class.
true
and the string "f" if the specified
boolean is false
.
CKYItem.containsVerbUndefined
; otherwise, returns the string that would
result in executing shortBool(containsVerb())
.
Model.structureClassName
but without the package
qualification.
UnsupportedOperationException
, as this is not
a modifier event.
UnsupportedOperationException
, as this is not
a modifier event.
Constants.LEFT
if this modifier lies on the
left side of the head child, or the value of Constants.RIGHT
if
this modifier lies on the right side.
UnsupportedOperationException
, as this is not
a modifier event.
Constants.LEFT
into Constants.leftSym
and converts the boolean value of Constants.RIGHT
into Constants.rightSym
.
AbstractWordFeatures
.WordFeatures
instance for
Arabic that simply returns the default word-feature vector.
AbstractWordFeatures
.danbikel.parser.WordFeatures
.CKYItem.label()
)
is a base NP and the previous modifier is punctuation.
CKYItem.label()
) is a base NP and the previous modifier is punctuation.
Shifter
instance to determine whether the
specified modifier should be skipped when constructing a history for the
specified chart item.
Shifter
instance to determine whether the
specified modifier head word should be skipped when constructing a history
for the specified chart item.
AbstractClient.tolerateFaults(int, int, boolean)
or AbstractClient.getFaultTolerantServer(int, int, boolean)
methods.
SLNode
with the specified data object
and next
node.
ProbabilityStructure.saveSmoothingParameters()
returns true
, or
read from and used if either ProbabilityStructure.dontAddNewParameters()
or
ProbabilityStructure.useSmoothingParameters()
return true
.
Event
instances)
at the back-off levels of this model.
Model
objects
are to read smoothing parameters files.
ProbabilityStructure.smoothingParametersFile()
.
ArrayList
.c.iterator()
and
whose top element is the last.
AbstractSwitchboardUser.Alive
class
to detect when the switchboard goes down and re-register this user.
Switchboard
instance when doing the
E-step of the EM algorithm (Inside-Outside) in a distributed-computing
environment.Training.startSym()
, which is the
type of list that should be used when there are zero real previous
modifiers (to start the Markov modifier process).
Switchboard
instance for parsing in a
distributed-computing environment.Training.startSym()
, cached here for efficiency
and convenience.
Training.startSym()
.
Word
object that represents the hidden "head word"
of the start symbol.
Training.startWord()
, cached here for efficiency
and convenience.
Word
object that represents the hidden "head
word" of the start symbol.
Training.startWord()
.
Word
object that represents the hidden "head
word" of the start symbol.
Training.startWord()
, which is the
type of list that should be used when there are zero real previous
modifiers (to start the Markov modifier process).
Decoder.addStopProbs(danbikel.parser.CKYItem, java.util.List)
for storing
items to be added to the chart when iterating over a cell in the chart.
Training.stopSym()
, cached here for efficiency
and convenience.
Training.stopSym()
.
Word
object that represents the hidden "head word"
of the stop symbol.
Training.stopWord()
, cached here for efficiency
and convenience.
Training.stopWord()
, cached here for efficiency
and convenience.
Training.stopSym()
, cached here for convenience.
Word
object that represents the hidden "head
word" of the stop symbol.
Training.stopWord()
.
Word
object that represents the hidden "head
word" of the stop symbol.
Properties.store(OutputStream,String)
.
Properties.store(OutputStream,String)
.
Model.precomputedProbs
and Model.smoothingParams
map arrays.
StringSymbol
objects associate strings with unique references.Externalizable
interface.
String.class
.
label
, except
all augmentations other than the index will be removed.
AbstractTreebank.stripAllButIndex(Symbol)
, except that instead of
creating a new Nonterminal
object for use by
AbstractTreebank.parseNonterminal(Symbol,Nonterminal)
, this method
uses the specified nonterminal
object.
label
, except
all augmentations other than the index will be removed.
Treebank.stripAllButIndex(Symbol)
, except that instead of
creating a new Nonterminal
object for use by
Treebank.parseNonterminal(Symbol,Nonterminal)
, this method
uses the specified nonterminal
object.
Symbol
created by stripping off all
augmentations, that is all characters after and including the first
character that appears in the string returned by
AbstractTreebank.augmentationDelimiters()
.
Symbol
created by stripping off all
augmentations, that is all characters after and including the first
character that appears in the string returned by
Treebank.augmentationDelimiters()
.
tree
.
Nonterminal
object with the specified
nonterminal label but without any augmentations.
tree
.
label
, but stripped of any index augmentation.
AbstractTreebank.stripIndex(Symbol)
, except that instead of creating
a new Nonterminal
object for use by AbstractTreebank.parseNonterminal(Symbol,Nonterminal)
, this method simply passes the
specified nonterminal
object.
label
, but stripped of any index augmentation.
Treebank.stripIndex(Symbol)
, except that instead of creating
a new Nonterminal
object for use by Treebank.parseNonterminal(Symbol,Nonterminal)
, this method simply passes the
specified nonterminal
object.
ProbabilityStructure
instance used by this model.
list
.
SubcatBag
objects.SubcatBagFactory
.
Subcat
object factory, to be used by
the Subcats
static factory class.SubcatFactory
object to be used by the Subcats
static factory class.
SexpList
.
SubcatList
objects.SubcatListFactory
.
Subcat
objects.AbstractTraining.relabelSubjectlessSentences(Sexp)
will use for sentences that have no subjects.
relabelSubjectlessSentences
will use for sentences that have no subjects.
Training.relabelSubjectlessSentences(Sexp)
will use for sentences that have no subjects.
Training.relabelSubjectlessSentences(Sexp)
will use for sentences that have no subjects.
Training.relabelSubjectlessSentences(Sexp)
will relabel sentences when they have no subjects.
Training.relabelSubjectlessSentences(Sexp)
will relabel sentences when they have no subjects.
Settings.decoderSubstituteWordsForClosedClassTags
setting.
Switchboard
with all default settings.
Switchboard
object using the specified
filename for the messages file.
Switchboard
with the specified message file
writer.
Switchboard
object with the specified
messages filename and port on which to receive RMI calls.
Switchboard
object with the specified
message file writer and the specified port on which to receive RMI calls.
Switchboard
with the specified message
filename, port and re-process option.
Switchboard
object with the specified
message file writer, port and re-process option.
Switchboard
with the specified message
filename, port, re-process option and object reader/writer factories.
Switchboard
with the specified message file
writer, port, re-process option and object reader/writer factories.
Switchboard
with the specified message file
writer, port, re-process option, object reader/writer factories and
registry binding name.
Switchboard
object with the specified
message file writer, port on which to receive RMI
calls, re-process option, object reader factories (one for
un-numbered objects, another for numbered objects) and registry binding
name.
System.err
as an emergency backup (in case processing took a long time and
it is highly undesirable to lose the work).
reRegister
, so that clients
may perform any emergency procedures prior to re-registering and getting
a new server.
Switchboard
specified on the command line
(defaults to Switchboard.defaultBindingName
).
Symbol
.
Symbol
objects associate strings or integers with
unique references.Map
or a Set
in an S-expression format.Symbol
objects.null
).
SymbolPair
from the first two symbols in the specified
list.
Word.word
.
true
if any of the nonterminals
in matchTags
is tag
and returns
false
otherwise.
String
or StringBuffer
objects.ObjectWriter
that merely prints out objects' string
representations (as determined by their toString
methods)
to an underlying character stream (Writer
) followed by a
newline.TextObjectWriter
objects.TextObjectWriterFactory
.
Time
object whose start time is
System.currentTimeMillis
.
Time
object with the specified start time.
ServerSocket
subclass that delivers Socket
objects via its implementation of TimeoutServerSocket.accept()
that have
had their timeout values set to the value specified at construction.TimeoutServerSocket.accept()
method.
Socket.setSoTimeout
).TimeoutSocketFactory
with the
specified timeout values for server and client sockets.
AbstractSwitchboardUser.unexportWhenDead()
method).
Decoder.getPrevMods(danbikel.parser.CKYItem, danbikel.util.SLNode)
and Decoder.getPrevModWords(danbikel.parser.CKYItem, danbikel.util.SLNode, boolean)
.
LinkedList
object containing all the data of
this list.
TrainerEvent
objects.
ProbabilityStructure
, to be instantiated by
Trainer
for the head word-generation submodel for head
words of entire sentences.
ProbabilityStructure
object for the
head word-generation submodel for heads of entire sentences.
Training.topSym()
.
Training.topSym()
.
ProbabilityStructure
, to be instantiated by
Trainer
for the head-generation submodel for heads whose parents
are Training.topSym()
.
ProbabilityStructure
object for the
head-generation submodel for heads whose parents are
Training.topSym()
.
TrainerEvent
instances where the parent
is Training.topSym()
.
Decoder.addTopUnaries(int)
for storing
items to be added to the chart when iterating over a cell in the chart.
EMDecoder.addTopUnaries(int)
for storing
items to be added to the chart when iterating over a cell in the chart.
BiCountsTable
index for retrieving the Jensen-Shannon
divergence from a history context (distribution) at a particular back-off
level to its corresponding previous back-off level (greater context)
history context.
true
if the specified chart item should not
be added to the specified set of items because its probability is not
within Chart.pruneFact
of the highest-ranked item.
Training.topSym()
, cached for efficiency and
convenience.
Training.topSym()
, cached here for efficiency
and convenience.
Training.topSym()
.
Word
object that represents the hidden "head word"
of the hidden root of all parse trees.
Word
object that represents the hidden "head
word" of the hidden root of all parse trees.
Word
object that represents the hidden "head
word" of the hidden root of all parse trees.
Subcat
, this method returns a
Sexp
such that an equivalent BrokenSubcatBag
object would result from the BrokenSubcatBag.addAll(SexpList)
method being
invoked with this Sexp
as its argument.
Sexp
contained in this event.
Sexp
; otherwise, this method returns a SexpList
of the form (sexp subcat)
, where sexp
is the Sexp
component(s) of this event and subcat
is the result of calling subcat.toSexp()
.
Subcat
object of this run-time type were constructed
and its Subcat.addAll(SexpList)
method were invoked with the
list returned by this method.
Subcat
, this method returns a
Sexp
such that an equivalent SubcatBag
object
would result from the SubcatBag.addAll(SexpList)
method being invoked with
this Sexp
as its argument.
CKYItem.toSexp()
).
GapEvent.GapEvent(Sexp)
.
HeadEvent.HeadEvent(Sexp)
.
ModifierEvent.ModifierEvent(Sexp)
.
SexpEvent.sexpLabel
event)
where event is string representation of the Sexp
held by this object.
SexpSubcatEvent.sexpSubcatLabel
event)
where event is string representation of the Sexp
held by this object.
String.valueOf(boolean)
when passed the processed
flag of this object
objectStr is the result of calling the underlying object's
toString
method
This is the format that is written by the TextObjectWriter
objects created by the TextObjectWriterFactory
.
Sexp
-readable version of the
singly-linked list headed by this node.
Time
object, using the output of
Time.elapsedTime(long)
.
Chart.clear()
).
BiCountsTable
index for retrieving the Jensen-Shannon
divergence from a history context (distribution) at a particular back-off
level to its corresponding zeroeth back-off level (maximal context) history
context.
AbstractTraining.addGapInformation(Sexp)
.
AbstractTraining.addGapInformation(Sexp)
.
Training.traceTag()
.
Training.addGapInformation(Sexp)
.
Settings
for its settings.
Trainer.getEventIterator(danbikel.lisp.SexpTokenizer, danbikel.lisp.Symbol)
method.EventEntry
instance with the specified
TrainerEvent
and count.
Trainer.main(String[])
.
Trainer
.TrainerEvent
instances to String
instances
of the form produced by
Mike
Collins’ parser.System.err
when training.
Language
.
Language
.
Language
.
Training
object for the current language.
Training
in a language package.
Training.transformTags(Sexp)
.
TagMap.transformTag(Word)
.
CountsTable
for transitions.
Transition
array to store transitions.
Treebank
object.
Treebank
object.
Treebank
object.
Language.treebank()
.
Treebank
object for the current language.
Treebank
implementation provides data and methods specific
to the structures found in a particular Treebank.Treebank
in a language package.
trimToSize
not only on this list, but recursively
invokes this method on all elements of this list, thereby trimming
every list in the implicit tree of this list.
StreamTokenizer
.
Symbol.class
, -1 otherwise.
Sexp.class
, -1
otherwise.
Symbol.class
, -1 otherwise.
Symbol.class
, -1 otherwise.
Decoder.addUnaries(danbikel.parser.CKYItem, java.util.List)
for storing
items to be added to the chart when iterating over a cell in the chart.
Settings.unknownWordThreshold
.
Settings.unknownWordThreshold
setting.
UnlexTreeConstraintSet
objects.UnlexTreeConstraintSet
objects.
UnrecognizedClientException
.
UnrecognizedClientException
with the
specified message.
UnrecognizedClientException
with the
specified message and nested exception.
UnrecognizedServerException
.
UnrecognizedServerException
with the
specified message.
UnrecognizedServerException
with the
specified message and nested exception.
AbstractTraining.repairBaseNPs(Sexp)
(for inclusion
in an overridden definition of
AbstractTraining.postProcess(Sexp)
,
but currently unused by this class).
Training.repairBaseNPs(Sexp)
method.
AbstractTraining.repairBaseNPs(Sexp)
, in which sentential nodes that occur to the right of
the head child of a base NP are moved to become immediate right siblings of
the base NP; accordingly, this method moves all such sentential nodes that
occur immediately to the right of a base NP to be the rightmost child under
that base NP.
Model
should perform
probability caching.
Settings.decoderUseCommaConstraint
.
Settings.countThreshold
, which means that events below that threshold will
be removed.
Settings.decoderUseHeadToParentMap
setting.
Settings.useLowFreqTags
setting.
Settings.decoderUseOnlySuppliedTags
setting.
AbstractHeadFinder.probRandom
is greater than 0.0; otherwise,
set to false.
Settings.useSimpleModNonterminalMap
setting.
ModelCollection.simpleModNonterminalMap
.
Model
object should use the smoothing parameters contained in the file
ProbabilityStructure.smoothingParametersFile()
when deriving counts and precomputing
probabilities.
Settings.useSmoothingParams
setting.
Model
should use smoothing
parameters saved to a file from a previous training run, instead of
deriving smoothing parameters.
Settings
class to indicate
whether or not to consider underscores when creating the feature vector.
Settings
class to indicate
whether or not to consider underscores when creating the feature vector.
Sexp
objects that
represent parse trees.rmiregistry
if there was a previous method failure on the stub.
Sexp
object
but is an instance of a SexpConvertible
object,
then the value returned is the string representation of
((SexpConvertible)obj).toSexp()
; otherwise, the value
returned is that returned by String.valueOf(obj)
.
System.err
.
Training.regularizeVerbs
is
true
.
Symbol
objects representing words to
their count in the training data.
Settings.headFinderWarnDefaultRule
, cached here
for readability and convenience.
Model.estimateProb(ProbabilityStructure,TrainerEvent)
emits a warning when it
encounters a history for which there is a saved smoothing parameter but
was not an observed history as far as the current model is concerned.
null
for all data members.
Word
object.
Word
objects.WordFactory
object to be used by the Words
static factory class.
Symbol
objects that are word features
to their count in the training data.
WordFeatures
object for the current language.
WordFeatures
object contained static inside
Language
.
WordFeatures
in a language package.
Word
objects.WordList
objects.Word
instances via an internal
WordFactory
instance.Word
objects, used when seeding
the chart in Decoder.initialize(danbikel.lisp.SexpList)
.
AbstractTraining.prune(Sexp)
.
DecoderServerRemote
instance in a caching
version.
ModelCollection
class should write out the large hash map containing canonical versions of
Event
objects when it is serialized (that is, saved to a
file).
ObjectOutput
instance.
Sexp
object from the specified object stream (to be
implemented by all concrete subclasses).
ObjectOutput
instance.
ObjectOutput
instance.
map
in an S-expression format.
writeMap(map, null, writer)
.
ModelCollection
object to the specified output
file, writing a header containing the names of the training input file and
training output file.
ModelCollection
object to the specified output
stream, writing a header containing the names of the training input file
and training output file.
EventCountsWriter
.
Writer
.
toString
method) followed by a
newline to the underlying Writer
and flushes the
stream.
Model.smoothingParamsFile
.
Model.smoothingParamsFile
.
Trainer.train(SexpTokenizer,boolean,boolean)
to a human-readable text
file, by constructing a Writer
around a stream around the
specified file and calling Trainer.writeStats(Writer)
.
Trainer.train(SexpTokenizer,boolean,boolean)
to a human-readable text
file.
Subcat
of length zero.
|
Parsing Engine | |||||||||
PREV NEXT | FRAMES NO FRAMES |