pos.batch-train is failing with this new error. This is after commenting out the few lines that you mentioned earlier.
14:04:31 - RECIPE: Calling recipe 'pos.batch-train'
Using 6 labels: VB, VBD, VBG, VBN, VBP, VBZ
14:04:31 - RECIPE: Starting recipe pos.batch-train
{'silent': False, 'unsegmented': False, 'eval_split': 0.2, 'eval_id': None, 'batch_size': 32, 'n_iter': 10, 'dropout': 0.2, 'factor': 1, 'label': ['VB', 'VBD', 'VBG', 'VBN', 'VBP', 'VBZ'], 'output_model': PosixPath('/tmp/model'), 'input_model': 'en_core_web_sm', 'dataset': 'network_pos_annotations'}
14:04:31 - DB: Initialising database SQLite
14:04:31 - DB: Connecting to database SQLite
Loaded model en_core_web_sm
14:04:31 - RECIPE: Added sentence boundary detector to model pipeline
['sbd', 'tagger', 'parser', 'ner']
14:04:31 - DB: Loading dataset 'network_pos_annotations' (43 examples)
14:04:31 - MODEL: Merging tag spans of 43 examples
14:04:31 - MODEL: Using 33 examples (without 'ignore')
Using 20% of accept/reject examples (5) for evaluation
14:04:31 - RECIPE: Temporarily disabled other pipes: ['parser', 'ner']
14:04:31 - RECIPE: Initialised Tagger with model en_core_web_sm
{'lang': 'en', 'pipeline': ['sbd', 'tagger'], 'accuracy': {'token_acc': 99.8698372794, 'ents_p': 84.9664503965, 'ents_r': 85.6312524451, 'uas': 91.7237657538, 'tags_acc': 97.0403350292, 'ents_f': 85.2975560875, 'las': 89.800872413}, 'name': 'core_web_sm', 'license': 'CC BY-SA 3.0', 'author': 'Explosion AI', 'url': 'https://explosion.ai', 'vectors': {'width': 0, 'vectors': 0, 'keys': 0, 'name': None}, 'sources': ['OntoNotes 5', 'Common Crawl'], 'version': '2.0.0', 'spacy_version': '>=2.0.0a18', 'parent_package': 'spacy', 'speed': {'gpu': None, 'nwords': 291344, 'cpu': 5122.3040471407}, 'email': 'contact@explosion.ai', 'description': 'English multi-task CNN trained on OntoNotes, with GloVe vectors trained on Common Crawl. Assigns word vectors, context-specific token vectors, POS tags, dependency parse and named entities.'}
14:04:31 - PREPROCESS: Splitting sentences
{'batch_size': 32, 'min_length': None, 'nlp': <spacy.lang.en.English object at 0x112c58f60>, 'stream': [{'text': 'add client 8c:85:90:3d:96:79, client count 9.', 'spans': [{'start': 0, 'end': 3, 'token_start': 0, 'token_end': 1, 'label': 'VBP', 'text': 'add', 'score': 0.055333979400000004, 'answer': 'accept'}], 'meta': {'score': 0.055333979400000004}, '_input_hash': 11590144, '_task_hash': -897644249, 'answer': 'accept'}, {'text': 'Found valid key for user admin', 'spans': [{'start': 0, 'end': 5, 'token_start': 0, 'token_end': 1, 'label': 'VBD', 'text': 'Found', 'score': 0.0978863165, 'answer': 'accept'}, {'start': 0, 'end': 5, 'token_start': 0, 'token_end': 1, 'label': 'VBN', 'text': 'Found', 'score': 0.8839325309, 'answer': 'accept'}], 'meta': {'score': 0.0978863165}, '_input_hash': 880729490, '_task_hash': -249076197, 'answer': 'accept'}, {'text': 'Port 19 link down', 'spans': [{'start': 8, 'end': 12, 'token_start': 2, 'token_end': 3, 'label': 'VBP', 'text': 'link', 'score': 0.6044232845, 'answer': 'reject'}], 'meta': {'score': 0.6044232845}, '_input_hash': -925490151, '_task_hash': 288532677, 'answer': 'reject'}, {'text': 'account admin logout from xml 128.119.247.5', 'spans': [{'start': 0, 'end': 7, 'token_start': 0, 'token_end': 1, 'label': 'VBP', 'text': 'account', 'score': 0.2405723035, 'answer': 'reject'}], 'meta': {'score': 0.2405723035}, '_input_hash': 1420608995, '_task_hash': -989918693, 'answer': 'reject'}, {'text': 'E9:21:FD:F0 port 16 VLANs SmallGroups, authentication Radius', 'spans': [{'start': 9, 'end': 11, 'token_start': 2, 'token_end': 3, 'label': 'VBG', 'text': 'F0', 'score': 0.0048528342, 'answer': 'reject'}], 'meta': {'score': 0.0048528342}, '_input_hash': -362070793, '_task_hash': 616828274, 'answer': 'reject'}, {'text': 'receive station msg, mac-8c:85:90:3d:96:79 bssid-f0:5c:19:25:d1:21 essid-CICS.', 'spans': [{'start': 0, 'end': 7, 'token_start': 0, 'token_end': 1, 'label': 'VB', 'text': 'receive', 'score': 0.5782603025, 'answer': 'accept'}, {'start': 49, 'end': 66, 'token_start': 7, 'token_end': 8, 'label': 'VBG', 'text': 'f0:5c:19:25:d1:21', 'score': 0.1396117955, 'answer': 'reject'}], 'meta': {'score': 0.5782603025}, '_input_hash': 1948839068, '_task_hash': 1981648084, 'answer': 'accept'}, {'text': 'Failed to login to ALE server.', 'spans': [{'start': 0, 'end': 6, 'token_start': 0, 'token_end': 1, 'label': 'VBN', 'text': 'Failed', 'score': 0.8626689911000001, 'answer': 'accept'}], 'meta': {'score': 0.8626689911000001}, '_input_hash': -386275139, '_task_hash': -872306004, 'answer': 'accept'}, {'text': 'Login passed for user admin through xml 128.119.247.5', 'spans': [{'start': 6, 'end': 12, 'token_start': 1, 'token_end': 2, 'label': 'VBD', 'text': 'passed', 'score': 0.39312195780000003, 'answer': 'accept'}], 'meta': {'score': 0.39312195780000003}, '_input_hash': -323994160, '_task_hash': -733438919, 'answer': 'accept'}, {'text': 'AM f0:5c:19:25:9c:00: ARM Channel Interference Trigger', 'spans': [{'start': 0, 'end': 2, 'token_start': 0, 'token_end': 1, 'label': 'VB', 'text': 'AM', 'score': 0.4830096364, 'answer': 'reject'}], 'meta': {'score': 0.4830096364}, '_input_hash': 1835173649, '_task_hash': 1783173019, 'answer': 'reject'}, {'text': 'Port 16 link UP at speed 1 Gbps and full-duplex', 'spans': [{'start': 8, 'end': 12, 'token_start': 2, 'token_end': 3, 'label': 'VBP', 'text': 'link', 'score': 0.0774894804, 'answer': 'reject'}], 'meta': {'score': 0.0774894804}, '_input_hash': 797919552, '_task_hash': -928820376, 'answer': 'reject'}, {'text': 'Login passed for user admin through ssh 128.119.240.39', 'spans': [{'start': 6, 'end': 12, 'token_start': 1, 'token_end': 2, 'label': 'VBD', 'text': 'passed', 'score': 0.39312195780000003, 'answer': 'accept'}, {'start': 6, 'end': 12, 'token_start': 1, 'token_end': 2, 'label': 'VBN', 'text': 'passed', 'score': 0.6063562036, 'answer': 'accept'}], 'meta': {'score': 0.39312195780000003}, '_input_hash': -72680087, '_task_hash': 207730494, 'answer': 'accept'}, {'text': 'Network Login MAC user 68B599A71D20 logged in MAC 68:B5:99:A7:1D:20 port 20 VLANs EDLAB, authentication Radius', 'spans': [{'start': 36, 'end': 42, 'token_start': 5, 'token_end': 6, 'label': 'VBN', 'text': 'logged', 'score': 0.0770713314, 'answer': 'accept'}, {'start': 89, 'end': 103, 'token_start': 14, 'token_end': 15, 'label': 'VB', 'text': 'authentication', 'score': 0.1477508098, 'answer': 'reject'}], 'meta': {'score': 0.0770713314}, '_input_hash': 513841368, '_task_hash': 692986997, 'answer': 'accept'}, {'text': 'Login passed for user admin through ssh 128.119.240.169', 'spans': [{'start': 6, 'end': 12, 'token_start': 1, 'token_end': 2, 'label': 'VBD', 'text': 'passed', 'score': 0.39312195780000003, 'answer': 'accept'}, {'start': 6, 'end': 12, 'token_start': 1, 'token_end': 2, 'label': 'VBN', 'text': 'passed', 'score': 0.6063562036, 'answer': 'accept'}], 'meta': {'score': 0.39312195780000003}, '_input_hash': 2062879761, '_task_hash': 1162997097, 'answer': 'accept'}, {'text': 'Protocol resolve:ucast-v4 is violated at fpc 0 for 26 times, started at 2017-09-16 11:54:08 EDT', 'spans': [{'start': 61, 'end': 68, 'token_start': 15, 'token_end': 16, 'label': 'VBN', 'text': 'started', 'score': 0.0699738115, 'answer': 'accept'}], 'meta': {'score': 0.0699738115}, '_input_hash': -2118964065, '_task_hash': -1473159162, 'answer': 'accept'}, {'text': 'Network Login MAC user 38C9863BB891 logged in MAC 38:C9:86:3B:B8:91 port 13 VLANs EDLAB, authentication Radius', 'spans': [{'start': 68, 'end': 72, 'token_start': 11, 'token_end': 12, 'label': 'VBP', 'text': 'port', 'score': 0.0382472016, 'answer': 'reject'}, {'start': 89, 'end': 103, 'token_start': 16, 'token_end': 17, 'label': 'VB', 'text': 'authentication', 'score': 0.1400180161, 'answer': 'reject'}], 'meta': {'score': 0.0382472016}, '_input_hash': 1009617874, '_task_hash': 687254671, 'answer': 'reject'}, {'text': 'Network Login MAC user 38C9862826E6 logged in MAC 38:C9:86:28:26:E6 port 14 VLANs EDLAB, authentication Radius', 'spans': [{'start': 89, 'end': 103, 'token_start': 14, 'token_end': 15, 'label': 'VB', 'text': 'authentication', 'score': 0.1453359574, 'answer': 'reject'}], 'meta': {'score': 0.1453359574}, '_input_hash': -57640706, '_task_hash': 2129843431, 'answer': 'reject'}, {'text': 'Login passed for user admin through ssh 128.119.240.50', 'spans': [{'start': 6, 'end': 12, 'token_start': 1, 'token_end': 2, 'label': 'VBD', 'text': 'passed', 'score': 0.39312195780000003, 'answer': 'accept'}, {'start': 6, 'end': 12, 'token_start': 1, 'token_end': 2, 'label': 'VBN', 'text': 'passed', 'score': 0.6063562036, 'answer': 'accept'}], 'meta': {'score': 0.39312195780000003}, '_input_hash': 1755864279, '_task_hash': 953636728, 'answer': 'accept'}, {'text': 'receive station msg, mac-04:54:53:3f:89:3a bssid-f0:5c:19:25:e6:12 essid-CSPublic.', 'spans': [{'start': 0, 'end': 7, 'token_start': 0, 'token_end': 1, 'label': 'VB', 'text': 'receive', 'score': 0.5784712434, 'answer': 'accept'}, {'start': 21, 'end': 42, 'token_start': 4, 'token_end': 5, 'label': 'VB', 'text': 'mac-04:54:53:3f:89:3a', 'score': 0.0654469058, 'answer': 'reject'}], 'meta': {'score': 0.5784712434}, '_input_hash': 677432146, '_task_hash': 57882591, 'answer': 'accept'}, {'text': 'Port 1 link down', 'spans': [{'start': 7, 'end': 11, 'token_start': 2, 'token_end': 3, 'label': 'VBP', 'text': 'link', 'score': 0.6796995401, 'answer': 'reject'}], 'meta': {'score': 0.6796995401}, '_input_hash': 799623361, '_task_hash': 655144301, 'answer': 'reject'}, {'text': 'Port 1 link UP at speed 100 Mbps and full-duplex', 'spans': [{'start': 7, 'end': 11, 'token_start': 2, 'token_end': 3, 'label': 'VBP', 'text': 'link', 'score': 0.3509369791, 'answer': 'reject'}], 'meta': {'score': 0.3509369791}, '_input_hash': 1451080809, '_task_hash': -64224250, 'answer': 'reject'}], 'text_key': 'text'}
14:04:31 - PREPROCESS: Splitting sentences
{'batch_size': 32, 'min_length': None, 'nlp': <spacy.lang.en.English object at 0x112c58f60>, 'stream': [{'text': 'Port 13 link UP at speed 1 Gbps and full-duplex', 'spans': [{'start': 8, 'end': 12, 'token_start': 2, 'token_end': 3, 'label': 'VBP', 'text': 'link', 'score': 0.5909635425, 'answer': 'reject'}], 'meta': {'score': 0.5909635425}, '_input_hash': -1771984083, '_task_hash': -835484383, 'answer': 'reject'}, {'text': 'Cannot connect to aruba.brightcloud.com: Connection timed out', 'spans': [{'start': 0, 'end': 3, 'token_start': 0, 'token_end': 1, 'label': 'VB', 'text': 'Can', 'score': 1.4818000000000002e-06, 'answer': 'accept'}], 'meta': {'score': 1.4818000000000002e-06}, '_input_hash': -143317322, '_task_hash': 1511107371, 'answer': 'accept'}, {'text': 'Protocol resolve:ucast-v4 is violated at fpc 0 for 25 times, started at 2017-09-15 15:52:54 EDT', 'spans': [{'start': 61, 'end': 68, 'token_start': 15, 'token_end': 16, 'label': 'VBN', 'text': 'started', 'score': 0.0902839601, 'answer': 'accept'}], 'meta': {'score': 0.0902839601}, '_input_hash': 1191548301, '_task_hash': 1688884184, 'answer': 'accept'}, {'text': 'Port 20 link UP at speed 1 Gbps and full-duplex', 'spans': [{'start': 8, 'end': 12, 'token_start': 2, 'token_end': 3, 'label': 'VB', 'text': 'link', 'score': 0.033128142400000005, 'answer': 'reject'}], 'meta': {'score': 0.033128142400000005}, '_input_hash': -1982547134, '_task_hash': -237652226, 'answer': 'reject'}, {'text': 'AM f0:5c:19:21:ef:80: ARM - increasing power cov-index 7/0 tx-power 3 new_rra 1/4', 'spans': [{'start': 3, 'end': 20, 'token_start': 1, 'token_end': 2, 'label': 'VB', 'text': 'f0:5c:19:21:ef:80', 'score': 0.0240463354, 'answer': 'reject'}], 'meta': {'score': 0.0240463354}, '_input_hash': 1414870338, '_task_hash': -1772092209, 'answer': 'reject'}], 'text_key': 'text'}
14:04:31 - MODEL: Merging tag spans of 5 examples
14:04:31 - MODEL: Using 5 examples (without 'ignore')
14:04:31 - MODEL: Evaluated 5 examples
{'right': 0.0, 'wrong': 3.0, 'unk': 71.0, 'acc': 0.0}
14:04:31 - RECIPE: Calculated baseline from evaluation examples (accuracy 0.00)
Using 100% of remaining examples (20) for training
Dropout: 0.2 Batch size: 32 Iterations: 10
BEFORE 0.000
Correct 0
Incorrect 3
Unknown 71
# LOSS RIGHT WRONG ACCURACY
14:04:32 - MODEL: Merging tag spans of 5 examples
14:04:32 - MODEL: Using 5 examples (without 'ignore')
14:04:32 - MODEL: Evaluated 5 examples
{'right': 0.0, 'wrong': 2.0, 'unk': 72.0, 'acc': 0.0}
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/Abhishek/Projects/Python-Projects/Python-VEs/ARMn/lib/python3.6/site-packages/prodigy/__main__.py", line 259, in <module>
controller = recipe(*args, use_plac=True)
File "cython_src/prodigy/core.pyx", line 167, in prodigy.core.recipe.recipe_decorator.recipe_proxy
File "/Users/Abhishek/Projects/Python-Projects/Python-VEs/ARMn/lib/python3.6/site-packages/plac_core.py", line 328, in call
cmd, result = parser.consume(arglist)
File "/Users/Abhishek/Projects/Python-Projects/Python-VEs/ARMn/lib/python3.6/site-packages/plac_core.py", line 207, in consume
return cmd, self.func(*(args + varargs + extraopts), **kwargs)
File "/Users/Abhishek/Projects/Python-Projects/Python-VEs/ARMn/lib/python3.6/site-packages/prodigy/recipes/pos.py", line 229, in batch_train
model_to_bytes = model.to_bytes()
AttributeError: 'Tagger' object has no attribute 'to_bytes'