예제 #1
0
 def __init__(self, ranker, prels, anserini, index, topn=10):
     AbstractQExpander.__init__(self, replace=False, topn=topn)
     self.prels = prels
     self.f = None
     self.anserini = anserini
     self.index = index
     self.ranker = ranker
예제 #2
0
 def __init__(self, replace=False):
     AbstractQExpander.__init__(self, replace)
예제 #3
0
 def __init__(self, vectorfile, replace=False, topn=3):
     AbstractQExpander.__init__(self, replace, topn)
     Word2Vec.vectorfile = vectorfile
     Word2Vec.word2vec = None
예제 #4
0
 def __init__(self, vectorfile, replace=False, topn=3):
     AbstractQExpander.__init__(self, replace, topn)
     Glove.vectorfile = vectorfile
     Glove.glove = None
예제 #5
0
 def __init__(self, replace=False, topn=3):
     AbstractQExpander.__init__(self, replace, topn)