Beispiel #1
0
 def test_x_ray_type(self):
     self.check_db(
         'XRAY.entities.json',
         get_x_ray_path(self.asin, self.book_path),
         'type',
         'SELECT top_mentioned_entities FROM type')
Beispiel #2
0
 def test_x_ray_book_metadata(self):
     self.check_db(
         'XRAY.entities.json',
         get_x_ray_path(self.asin, self.book_path),
         'book_metadata',
         'SELECT srl, erl, num_people, num_terms FROM book_metadata')
Beispiel #3
0
 def __init__(self, gui, data):
     self.gui = gui
     self.device_manager = self.gui.device_manager
     (self.book_id, _, self.asin, self.book_path, self.mi, _) = data
     self.ll_path = get_ll_path(self.asin, self.book_path)
     self.x_ray_path = get_x_ray_path(self.asin, self.book_path)
Beispiel #4
0
 def test_x_ray_occurrence(self):
     self.check_db(
         'XRAY.entities.json',
         get_x_ray_path(self.asin, self.book_path),
         'occurrence',
         'SELECT * FROM occurrence')
Beispiel #5
0
 def test_x_ray_occurrence(self):
     self.check_db(
         'XRAY.entities.json', get_x_ray_path(self.asin,
                                              self.book_path), 'occurrence',
         f'SELECT * FROM occurrence ORDER BY start LIMIT {LIMIT}')