Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad orelse Break decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Base class to call Named Entity Recognition APIs __future__ division __future__ absolute_import __future__ print_function __future__ unicode_literals N/A random N/A json N/A config N/A sql_convenience NERAPICaller N/A object N/A __init__ N/A N/A self source_table destination_table N/A N/A N/A N/A self source_table source_table N/A N/A self destination_table destination_table N/A N/A self brand apple N/A annotate_all_messages N/A N/A self N/A N/A N/A True N/A N/A msg N/A N/A self get_unannotated_message N/A N/A msg None N/A N/A tweet_id N/A msg N/A tweet_id N/A tweet_text N/A msg N/A tweet_text N/A N/A N/A N/A config logging info N/A Asking API for results for "%r" N/A repr tweet_text N/A response N/A N/A self call_api tweet_text N/A N/A N/A self store_raw_response msg response N/A N/A N/A self is_brand_of N/A self brand tweet_id N/A N/A cls N/A sql_convenience CLASS_IN N/A N/A cls N/A sql_convenience CLASS_OUT N/A N/A N/A sql_convenience update_class tweet_id N/A self destination_table cls N/A N/A N/A get_unannotated_message N/A N/A self N/A N/A N/A Return 1 not-yet-annotated message from the source_table N/A cursor N/A N/A N/A config db_conn cursor N/A sql N/A N/A SELECT tweet_id, tweet_text FROM {} WHERE tweet_id NOT IN (SELECT tweet_id FROM {}) format N/A self source_table N/A self destination_table N/A N/A N/A cursor execute sql N/A all_rows N/A N/A cursor fetchall N/A N/A N/A len all_rows 0 N/A N/A N/A N/A random choice all_rows N/A N/A None N/A call_api N/A N/A self message N/A N/A N/A Return a simulated call to an API N/A N/A N/A NERAPICaller base class:{} format message N/A is_brand_of N/A N/A self brand tweet_id N/A N/A N/A By default we assume all tweets have no brand in this base class N/A False N/A store_raw_response N/A N/A self source_details response_text N/A N/A N/A Store raw response from API provider using source_details N/A cls N/A sql_convenience CLASS_NOT_INVESTIGATED N/A json_response N/A N/A json dumps response_text N/A N/A N/A sql_convenience insert_api_response N/A source_details N/A tweet_id N/A source_details N/A tweet_text json_response cls N/A config db_conn N/A self destination_table N/A N/A