def setUp(self):
     self.source_table = "annotations_apple"
     self.destination_table = "api_apple"
     sql_convenience.create_tables(config.db_conn,
                                   self.source_table,
                                   self.destination_table,
                                   force_drop_table=True)
     self.ner_api = ner_api_caller.NERAPICaller(self.source_table,
                                                self.destination_table)
     self.cursor = config.db_conn.cursor()
 def setUp(self):
     self.annotations_table = "annotations_apple"
     sql_convenience.create_tables(config.db_conn, self.annotations_table, "table_not_needed_here", force_drop_table=True)
 def setUp(self):
     self.source_table = "annotations_apple"
     self.destination_table = "api_apple"
     sql_convenience.create_tables(config.db_conn, self.source_table, self.destination_table, force_drop_table=True)
     self.ner_api = ner_api_caller.NERAPICaller(self.source_table, self.destination_table)
     self.cursor = config.db_conn.cursor()
 def setUp(self):
     self.source_table = "annotations_apple"
     self.destination_table = "api_apple"
     sql_convenience.create_tables(config.db_conn, self.source_table, self.destination_table, force_drop_table=True)
     self.api = opencalais_ner.OpenCalaisNER(self.source_table, self.destination_table)
     self.cursor = config.db_conn.cursor()
Example #5
0
 def setUp(self):
     self.annotations_table = "annotations_apple"
     sql_convenience.create_tables(config.db_conn,
                                   self.annotations_table,
                                   "table_not_needed_here",
                                   force_drop_table=True)