|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractProcessingResource
gate.creole.AbstractLanguageAnalyser
gate.creole.coref.PronominalCoref
| Nested Class Summary | |
private static class |
PronominalCoref.AnnotationOffsetComparator
--- |
private class |
PronominalCoref.Quote
--- |
private class |
PronominalCoref.Sentence
--- |
| Nested classes inherited from class gate.creole.AbstractProcessingResource |
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener |
| Field Summary | |
private HashMap |
anaphor2antecedent
--- |
private static PronominalCoref.AnnotationOffsetComparator |
ANNOTATION_OFFSET_COMPARATOR
--- |
private String |
annotationSetName
--- |
static String |
COREF_ANN_SET_PARAMETER_NAME
|
static String |
COREF_DOCUMENT_PARAMETER_NAME
|
private static boolean |
DEBUG
--- |
private AnnotationSet |
defaultAnnotations
--- |
private HashMap |
personGender
--- |
private static String |
PLEON_GRAMMAR_URL
|
private static String |
PLEONASTIC_TYPE
|
private Annotation[] |
pleonasticIt
--- |
private Transducer |
pleonTransducer
--- |
private static String |
PRP_CATEGORY
|
private static FeatureMap |
PRP_RESTRICTION
--- |
private static String |
PRP$_CATEGORY
|
private static String |
QT_GRAMMAR_URL
|
private Transducer |
qtTransducer
--- |
private static String |
QUOTED_TEXT_TYPE
|
private PronominalCoref.Quote[] |
quotedText
--- |
private boolean |
resolveIt
|
private static int |
SENTENCES_IN_SCOPE
|
private PronominalCoref.Sentence[] |
textSentences
--- |
| Fields inherited from class gate.creole.AbstractLanguageAnalyser |
corpus, document |
| Fields inherited from class gate.creole.AbstractProcessingResource |
interrupted |
| Fields inherited from class gate.creole.AbstractResource |
name |
| Fields inherited from class gate.util.AbstractFeatureBearer |
features |
| Constructor Summary | |
PronominalCoref()
--- |
|
| Method Summary | |
private Annotation |
_chooseAntecedent$HE$HIM$HIS$SHE$HER$HIMSELF$(Annotation ant1,
Annotation ant2,
Annotation pronoun)
--- |
private Annotation |
_chooseAntecedent$IT$ITS$ITSELF$(Annotation ant1,
Annotation ant2,
Annotation pronoun)
--- |
private Annotation |
_resolve$HE$HIM$HIS$HIMSELF$(Annotation pronoun,
int sentenceIndex)
--- |
private Annotation |
_resolve$I$ME$MY$MYSELF$(Annotation pronoun,
int sentenceIndex)
--- |
private Annotation |
_resolve$IT$ITS$ITSELF$(Annotation pronoun,
int sentenceIndex)
--- |
private Annotation |
_resolve$SHE$HER$(Annotation pronoun,
int sentenceIndex)
--- |
void |
execute()
This method runs the coreferencer. |
private Annotation |
findAntecedent(Annotation currPronoun,
int prnSentIndex)
--- |
private String |
findPersonGender(Annotation person)
--- |
String |
getAnnotationSetName()
--- |
HashMap |
getResolvedAnaphora()
--- |
Boolean |
getResolveIt()
--- |
Resource |
init()
Initialise this resource, and return it. |
(package private) boolean |
isPleonastic(Annotation pronoun)
|
private void |
preprocess()
--- |
void |
reInit()
Reinitialises the processing resource. |
void |
setAnnotationSetName(String annotationSetName)
--- |
void |
setDocument(Document newDocument)
Set the document to run on. |
void |
setResolveIt(Boolean newValue)
--- |
| Methods inherited from class gate.creole.AbstractLanguageAnalyser |
getCorpus, getDocument, setCorpus |
| Methods inherited from class gate.creole.AbstractProcessingResource |
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, interrupt, isInterrupted, removeProgressListener, removeStatusListener |
| Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
| Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures, setFeatures |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gate.Resource |
cleanup, getParameterValue, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
getName, setName |
| Methods inherited from interface gate.Executable |
interrupt, isInterrupted |
| Field Detail |
public static final String COREF_DOCUMENT_PARAMETER_NAME
public static final String COREF_ANN_SET_PARAMETER_NAME
private static final boolean DEBUG
private static final String QT_GRAMMAR_URL
private static final String PLEON_GRAMMAR_URL
private static final String QUOTED_TEXT_TYPE
private static final String PLEONASTIC_TYPE
private static final String PRP_CATEGORY
private static final String PRP$_CATEGORY
private static final int SENTENCES_IN_SCOPE
private static PronominalCoref.AnnotationOffsetComparator ANNOTATION_OFFSET_COMPARATOR
private String annotationSetName
private Transducer qtTransducer
private Transducer pleonTransducer
private AnnotationSet defaultAnnotations
private PronominalCoref.Sentence[] textSentences
private PronominalCoref.Quote[] quotedText
private Annotation[] pleonasticIt
private HashMap personGender
private HashMap anaphor2antecedent
private static final FeatureMap PRP_RESTRICTION
private boolean resolveIt
| Constructor Detail |
public PronominalCoref()
| Method Detail |
public Resource init()
throws ResourceInstantiationException
init in interface Resourceinit in class AbstractProcessingResourceResourceInstantiationException
public void reInit()
throws ResourceInstantiationException
reInit in interface ProcessingResourcereInit in class AbstractProcessingResourceResourceInstantiationExceptionpublic void setDocument(Document newDocument)
setDocument in interface LanguageAnalysersetDocument in class AbstractLanguageAnalyserpublic void setAnnotationSetName(String annotationSetName)
public String getAnnotationSetName()
public void setResolveIt(Boolean newValue)
public Boolean getResolveIt()
public void execute()
throws ExecutionException
execute in interface Executableexecute in class AbstractProcessingResourceExecutionExceptionpublic HashMap getResolvedAnaphora()
private Annotation findAntecedent(Annotation currPronoun,
int prnSentIndex)
boolean isPleonastic(Annotation pronoun)
private Annotation _resolve$HE$HIM$HIS$HIMSELF$(Annotation pronoun,
int sentenceIndex)
private Annotation _resolve$SHE$HER$(Annotation pronoun,
int sentenceIndex)
private Annotation _resolve$IT$ITS$ITSELF$(Annotation pronoun,
int sentenceIndex)
private Annotation _resolve$I$ME$MY$MYSELF$(Annotation pronoun,
int sentenceIndex)
private void preprocess()
throws ExecutionException
ExecutionExceptionprivate String findPersonGender(Annotation person)
private Annotation _chooseAntecedent$HE$HIM$HIS$SHE$HER$HIMSELF$(Annotation ant1,
Annotation ant2,
Annotation pronoun)
private Annotation _chooseAntecedent$IT$ITS$ITSELF$(Annotation ant1,
Annotation ant2,
Annotation pronoun)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||