Exemplo n.º 1
0
 def setUp(self):
     TestCaseWithCorpus.setUp(self)
     ndocs = self.setUpCorpus()
     self.failUnless(ndocs, "failed to load any corpus docs")
     self.ensure_pipeline_complete()
     # and reset our API so it reloads anything
     self.call_api("_reset")
Exemplo n.º 2
0
 def setUp(self):
     _ = yield TestCaseWithCorpus.setUp(self)
     ndocs = yield self.load_corpus('hand-rolled')
     self.failUnless(ndocs, "failed to load any corpus docs")
     nerr = yield self.ensure_pipeline_complete()
     self.failUnlessEqual(nerr, 0)
     # and reset our API so it reloads anything
     _ = yield self.call_api("_reset")
Exemplo n.º 3
0
 def __init__(self, opts):
     self.opt_dict = opts
     TestCaseWithCorpus.__init__(self)