Module Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Str ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr BinOpAdd SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body While NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareEq SubscriptLoad NameLoad Index Str Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Break orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr Continue orelse If CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str body If CompareNotIn SubscriptLoad SubscriptLoad NameLoad Index Str Index Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr If CompareIn Str NameLoad body For NameStore AttributeLoad NameLoad attr body Assign NameStore ListLoad If CompareIn NameLoad SubscriptLoad NameLoad Index Str body If CompareIs Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword Str AugAssignAdd NameStore SubscriptLoad NameLoad Index Str orelse If CompareGt Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Num body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad keyword Str Index Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareNotEq NameLoad NameLoad CompareGt Call NameLoad NameLoad Num body For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Dict Str Str Str NameLoad NameLoad SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call NameLoad Num For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Str NameLoad Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Return Str Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Global identifier Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad Assign NameStore BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad Assign NameStore BoolOpAnd NameLoad CompareGt Call NameLoad NameLoad Num Assign NameStore BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr Str Str Num attr Assign NameStore BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr Str Str Num attr Assign NameStore BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad Assign NameStore BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A sys N/A os N/A os.path N/A re elasticsearch Elasticsearch time sleep muppet DurableChannel RemoteChannel N/A esStopWords N/A a an and are as at be but by for if in into is it no not of on or such that the their then there these they this to was will with N/A __name__ annotation_worker AnnotationWorker N/A N/A __init__ N/A N/A self config N/A N/A N/A N/A self config config N/A N/A self logger N/A config N/A logger N/A N/A self esClient N/A Elasticsearch N/A N/A N/A N/A config N/A elasticsearch N/A host : N/A str N/A N/A config N/A elasticsearch N/A port N/A N/A self corpusIndex N/A N/A config N/A corpus N/A index N/A N/A self corpusType N/A N/A config N/A corpus N/A type N/A N/A self corpusFields N/A N/A config N/A corpus N/A text_fields N/A N/A self corpusSize 0 N/A N/A self workerName bayzee.annotation.worker N/A N/A self timeout 6000 N/A N/A self processorIndex N/A N/A config N/A processor N/A index N/A N/A self processorType N/A N/A config N/A processor N/A type N/A N/A self processorPhraseType N/A N/A N/A config N/A processor N/A type __phrase N/A N/A self analyzerIndex N/A N/A self corpusIndex __analysis__ N/A N/A self worker N/A DurableChannel N/A self workerName config N/A N/A self dispatchers N/A N/A annotate N/A N/A self N/A N/A N/A True N/A N/A message N/A N/A N/A self worker receive N/A N/A N/A message N/A content kill N/A N/A N/A message N/A responseId N/A message N/A requestId N/A N/A N/A N/A self worker close message N/A N/A N/A len N/A self dispatchers 0 N/A N/A N/A N/A N/A self worker end N/A N/A N/A N/A N/A N/A self worker send content kill to N/A self workerName N/A N/A N/A N/A N/A N/A message N/A content N/A type annotate N/A N/A N/A N/A N/A message N/A content N/A from N/A self dispatchers N/A N/A N/A N/A self dispatchers N/A N/A N/A message N/A content N/A from N/A RemoteChannel N/A N/A message N/A content N/A from N/A self config N/A N/A N/A N/A N/A self dispatchers N/A N/A N/A message N/A content N/A from listen N/A self unregisterDispatcher N/A documentId N/A N/A message N/A content N/A documentId N/A document N/A N/A N/A self esClient get index N/A self corpusIndex doc_type N/A self corpusType id documentId fields N/A self corpusFields N/A N/A fields document N/A N/A field N/A self corpusFields N/A N/A shingles N/A N/A N/A field N/A document N/A fields N/A N/A N/A N/A type N/A N/A document N/A fields N/A field list N/A N/A element N/A N/A document N/A fields N/A field N/A N/A N/A N/A len element 0 N/A N/A shingleTokens N/A N/A N/A N/A self esClient indices analyze index N/A self analyzerIndex body element analyzer analyzer_shingle N/A shingles N/A shingleTokens N/A tokens N/A N/A N/A N/A len N/A N/A document N/A fields N/A field 0 N/A N/A shingles N/A N/A N/A N/A N/A self esClient indices analyze index N/A self analyzerIndex body N/A N/A document N/A fields N/A field analyzer analyzer_shingle N/A tokens N/A shingles N/A map N/A self __replaceUnderscore shingles N/A shingles N/A filter N/A self __filterTokens shingles N/A N/A N/A shingles None N/A N/A len shingles 0 N/A N/A shingle shingles N/A N/A phrase N/A shingle N/A token N/A key N/A N/A self __keyify phrase N/A N/A N/A len key 0 N/A N/A data N/A phrase phrase__not_analyzed document_id phrase phrase N/A document N/A _id N/A N/A N/A N/A N/A self esClient exists index N/A self processorIndex doc_type N/A self processorPhraseType id key N/A N/A N/A N/A N/A self esClient index index N/A self processorIndex doc_type N/A self processorPhraseType id key body data N/A N/A sleep 1 N/A processorInstance N/A N/A self config N/A processor_instances N/A N/A N/A N/A processorInstance annotate N/A self config documentId N/A N/A N/A N/A self worker reply message N/A documentId status type documentId processed reply N/A self timeout N/A N/A N/A N/A self logger info Terminating annotation worker N/A unregisterDispatcher N/A N/A self dispatcher message N/A N/A N/A N/A message dying N/A N/A N/A N/A N/A self dispatchers pop dispatcher None N/A N/A N/A len N/A self dispatchers 0 N/A N/A N/A N/A N/A self worker send content kill to N/A self workerName N/A __keyify N/A N/A self phrase N/A N/A N/A phrase N/A N/A phrase strip N/A N/A N/A len phrase 0 N/A N/A N/A key N/A N/A re sub [^A-Za-z0-9] phrase N/A key N/A N/A join N/A N/A phrase split N/A key N/A N/A key lower N/A key N/A N/A - join N/A N/A phrase split N/A key N/A __replaceUnderscore N/A N/A self shingle N/A N/A N/A token N/A shingle N/A token N/A token N/A N/A token replace _ N/A token N/A N/A N/A N/A re sub \s+ token strip N/A N/A shingle N/A token token N/A shingle N/A __filterTokens N/A N/A self shingle N/A N/A N/A esStopWords N/A tokens N/A N/A N/A shingle N/A token split N/A firstToken N/A tokens N/A 0 N/A lastToken N/A tokens N/A -1 N/A isValid True N/A isValid N/A isValid N/A lastToken None N/A isValid N/A isValid N/A N/A len lastToken 1 N/A isValid N/A isValid N/A N/A N/A N/A N/A firstToken replace . 1 isdigit N/A isValid N/A isValid N/A N/A N/A N/A N/A lastToken replace . 1 isdigit N/A isValid N/A isValid N/A firstToken esStopWords N/A isValid N/A isValid N/A lastToken esStopWords N/A isValid N/A N/A