public class AncoraSpanishHeadRules extends java.lang.Object implements HeadRules, GapLabeler, SerializableArtifact
| Modifier and Type | Class and Description |
|---|---|
static class |
AncoraSpanishHeadRules.HeadRulesSerializer |
| Constructor and Description |
|---|
AncoraSpanishHeadRules(java.io.Reader rulesReader)
Creates a new set of head rules based on the specified reader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Class<?> |
getArtifactSerializerClass()
Retrieves the class which can serialize and recreate this artifact.
|
Parse |
getHead(Parse[] constituents,
java.lang.String type)
Returns the head constituent for the specified constituents of the specified type.
|
java.util.Set<java.lang.String> |
getPunctuationTags()
Returns the set of punctuation tags.
|
void |
labelGaps(java.util.Stack<Constituent> stack)
Labels the constituents found in the stack with gap labels if appropriate.
|
void |
serialize(java.io.Writer writer)
Writes the head rules to the writer in a format suitable for loading
the head rules again with the constructor.
|
public AncoraSpanishHeadRules(java.io.Reader rulesReader)
throws java.io.IOException
rulesReader - the head rules reader.java.io.IOException - if the head rules reader can not be read.public java.util.Set<java.lang.String> getPunctuationTags()
HeadRulesgetPunctuationTags in interface HeadRulespublic Parse getHead(Parse[] constituents, java.lang.String type)
HeadRulespublic void labelGaps(java.util.Stack<Constituent> stack)
GapLabelerlabelGaps in interface GapLabelerstack - The stack of un-completed constituents.public void serialize(java.io.Writer writer)
throws java.io.IOException
After the entries have been written, the writer is flushed. The writer remains open after this method returns.
writer - java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Class<?> getArtifactSerializerClass()
SerializableArtifactgetArtifactSerializerClass in interface SerializableArtifactCopyright © 2010 - 2019 Adobe. All Rights Reserved