Search in sources :

Example 1 with BaselineTopSpeakerSieve

use of edu.stanford.nlp.quoteattribution.Sieves.MSSieves.BaselineTopSpeakerSieve in project CoreNLP by stanfordnlp.

the class QuoteAttributionAnnotator method getMSMapping.

private Map<String, MSSieve> getMSMapping(Annotation doc, Map<Integer, String> pronounCorefMap) {
    Map<String, MSSieve> map = new HashMap<>();
    map.put("det", new DeterministicSpeakerSieve(doc, characterMap, pronounCorefMap, animacyList));
    map.put("loose", new LooseConversationalSpeakerSieve(doc, characterMap, pronounCorefMap, animacyList));
    map.put("top", new BaselineTopSpeakerSieve(doc, characterMap, pronounCorefMap, animacyList, genderMap, familyRelations));
    map.put("maj", new MajoritySpeakerSieve(doc, characterMap, pronounCorefMap, animacyList));
    return map;
}
Also used : BaselineTopSpeakerSieve(edu.stanford.nlp.quoteattribution.Sieves.MSSieves.BaselineTopSpeakerSieve) DeterministicSpeakerSieve(edu.stanford.nlp.quoteattribution.Sieves.MSSieves.DeterministicSpeakerSieve) MSSieve(edu.stanford.nlp.quoteattribution.Sieves.MSSieves.MSSieve) LooseConversationalSpeakerSieve(edu.stanford.nlp.quoteattribution.Sieves.MSSieves.LooseConversationalSpeakerSieve) MajoritySpeakerSieve(edu.stanford.nlp.quoteattribution.Sieves.MSSieves.MajoritySpeakerSieve)

Aggregations

BaselineTopSpeakerSieve (edu.stanford.nlp.quoteattribution.Sieves.MSSieves.BaselineTopSpeakerSieve)1 DeterministicSpeakerSieve (edu.stanford.nlp.quoteattribution.Sieves.MSSieves.DeterministicSpeakerSieve)1 LooseConversationalSpeakerSieve (edu.stanford.nlp.quoteattribution.Sieves.MSSieves.LooseConversationalSpeakerSieve)1 MSSieve (edu.stanford.nlp.quoteattribution.Sieves.MSSieves.MSSieve)1 MajoritySpeakerSieve (edu.stanford.nlp.quoteattribution.Sieves.MSSieves.MajoritySpeakerSieve)1