|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.util.AbstractFeatureBearer | +--gate.creole.AbstractResource | +--gate.creole.AbstractProcessingResource | +--gate.creole.AbstractLanguageAnalyser | +--gate.creole.coref.PronominalCoref
Inner Class Summary | |
private static class |
PronominalCoref.AnnotationOffsetComparator
--- |
private class |
PronominalCoref.Quote
--- |
private class |
PronominalCoref.Sentence
--- |
Inner 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 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, progressListeners, statusListeners |
Fields inherited from class gate.creole.AbstractResource |
name, serialVersionUID |
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)
--- |
(package private) static void |
--- |
void |
execute()
This method runs the coreferencer. |
private Annotation |
findAntecedent(Annotation currPronoun,
int prnSentIndex)
--- |
private String |
findPersonGender(Annotation person)
--- |
String |
getAnnotationSetName()
--- |
HashMap |
getResolvedAnaphora()
--- |
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. |
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, 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, registerNatives, toString, wait, wait, wait |
Methods inherited from interface gate.ProcessingResource |
interrupt, isInterrupted |
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 |
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
Constructor Detail |
public PronominalCoref()
Method Detail |
static void()
public Resource init() throws ResourceInstantiationException
init
in interface Resource
init
in class AbstractProcessingResource
public void reInit() throws ResourceInstantiationException
reInit
in interface ProcessingResource
reInit
in class AbstractProcessingResource
public void setDocument(Document newDocument)
setDocument
in class AbstractLanguageAnalyser
public void setAnnotationSetName(String annotationSetName)
public String getAnnotationSetName()
public void execute() throws ExecutionException
execute
in interface Executable
execute
in class AbstractProcessingResource
public 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
private 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |