capreolus.reranker.PACRR

Module Contents

Classes

PACRR_class

PACRRConvMax2dModule

PACRR

Kai Hui, Andrew Yates, Klaus Berberich, and Gerard de Melo. 2017. PACRR: A Position-Aware Neural IR Model for Relevance Matching. EMNLP 2017.

class capreolus.reranker.PACRR.PACRR_class(extractor, config)[source]

Bases: torch.nn.Module

forward(sentence, query_sentence, query_idf)[source]
class capreolus.reranker.PACRR.PACRRConvMax2dModule(shape, n_filters, k, channels)[source]

Bases: torch.nn.Module

forward(simmat)[source]
class capreolus.reranker.PACRR.PACRR(config=None, provide=None, share_dependency_objects=False, build=True)[source]

Bases: capreolus.reranker.Reranker

Kai Hui, Andrew Yates, Klaus Berberich, and Gerard de Melo. 2017. PACRR: A Position-Aware Neural IR Model for Relevance Matching. EMNLP 2017.

module_name = PACRR[source]
config_spec[source]
build_model()[source]
score(d)[source]
test(d)[source]