And here are the results for baseline + ULMFiT evaluation:
/home/pedro/anaconda3/envs/allennlp/bin/python /home/pedro/repositorios/allennlp/allennlp/run.py evaluate /media/discoD/models/elmo/ner_ulmfit/model.tar.gz /home/pedro/repositorios/portuguese-tagger/dataset/eng.testb
2018-12-26 07:48:46,164 - WARNING - allennlp.common.file_utils - Deprecated cache directory found (/home/pedro/.allennlp/datasets). Please remove this directory from your system to free up space.
2018-12-26 07:48:47,035 - INFO - allennlp.models.archival - loading archive file /media/discoD/models/elmo/ner_ulmfit/model.tar.gz
2018-12-26 07:48:47,036 - INFO - allennlp.models.archival - extracting archive file /media/discoD/models/elmo/ner_ulmfit/model.tar.gz to temp dir /tmp/tmpg7gpm8_q
2018-12-26 07:48:50,973 - INFO - allennlp.data.vocabulary - Loading token dictionary from /tmp/tmpg7gpm8_q/vocabulary.
2018-12-26 07:48:50,991 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.models.model.Model'> from params {'dropout': 0.5, 'encoder': {'bidirectional': True, 'dropout': 0.5, 'hidden_size': 200, 'input_size': 578, 'num_layers': 2, 'type': 'lstm'}, 'include_start_end_transitions': False, 'label_encoding': 'BIOUL', 'regularizer': [['scalar_parameters', {'alpha': 0.1, 'type': 'l2'}]], 'text_field_embedder': {'allow_unmatched_keys': True, 'embedder_to_indexer_map': {'fastai_ulmfit': ['fastai_ulmfit'], 'token_characters': ['token_characters'], 'tokens': ['tokens']}, 'token_embedders': {'fastai_ulmfit': {'language_model': {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'vocab_size': 238462}, 'type': 'fastai_ulmfit_embedder'}, 'token_characters': {'embedding': {'embedding_dim': 16}, 'encoder': {'conv_layer_activation': 'relu', 'embedding_dim': 16, 'ngram_filter_sizes': [3], 'num_filters': 128, 'type': 'cnn'}, 'type': 'character_encoding'}, 'tokens': {'embedding_dim': 50, 'trainable': True, 'type': 'embedding'}}}, 'type': 'crf_tagger'} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:48:50,992 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.models.crf_tagger.CrfTagger'> from params {'dropout': 0.5, 'encoder': {'bidirectional': True, 'dropout': 0.5, 'hidden_size': 200, 'input_size': 578, 'num_layers': 2, 'type': 'lstm'}, 'include_start_end_transitions': False, 'label_encoding': 'BIOUL', 'regularizer': [['scalar_parameters', {'alpha': 0.1, 'type': 'l2'}]], 'text_field_embedder': {'allow_unmatched_keys': True, 'embedder_to_indexer_map': {'fastai_ulmfit': ['fastai_ulmfit'], 'token_characters': ['token_characters'], 'tokens': ['tokens']}, 'token_embedders': {'fastai_ulmfit': {'language_model': {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'vocab_size': 238462}, 'type': 'fastai_ulmfit_embedder'}, 'token_characters': {'embedding': {'embedding_dim': 16}, 'encoder': {'conv_layer_activation': 'relu', 'embedding_dim': 16, 'ngram_filter_sizes': [3], 'num_filters': 128, 'type': 'cnn'}, 'type': 'character_encoding'}, 'tokens': {'embedding_dim': 50, 'trainable': True, 'type': 'embedding'}}}} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:48:50,992 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.text_field_embedders.text_field_embedder.TextFieldEmbedder'> from params {'allow_unmatched_keys': True, 'embedder_to_indexer_map': {'fastai_ulmfit': ['fastai_ulmfit'], 'token_characters': ['token_characters'], 'tokens': ['tokens']}, 'token_embedders': {'fastai_ulmfit': {'language_model': {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'vocab_size': 238462}, 'type': 'fastai_ulmfit_embedder'}, 'token_characters': {'embedding': {'embedding_dim': 16}, 'encoder': {'conv_layer_activation': 'relu', 'embedding_dim': 16, 'ngram_filter_sizes': [3], 'num_filters': 128, 'type': 'cnn'}, 'type': 'character_encoding'}, 'tokens': {'embedding_dim': 50, 'trainable': True, 'type': 'embedding'}}} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:48:50,992 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.token_embedders.token_embedder.TokenEmbedder'> from params {'language_model': {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'vocab_size': 238462}, 'type': 'fastai_ulmfit_embedder'} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:48:50,992 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.token_embedders.fastai_ulmfit_embedder.FastaiUlmfitEmbedder'> from params {'language_model': {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'vocab_size': 238462}} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:48:50,992 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.fastai_ulmfit.FastaiLanguageModel'> from params {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'vocab_size': 238462} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:48:52,816 - INFO - allennlp.modules.fastai_ulmfit - loading weights from /media/discoD/models/fastai/wt103/wt103.tar.gz
2018-12-26 07:49:00,436 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.token_embedders.token_embedder.TokenEmbedder'> from params {'embedding': {'embedding_dim': 16}, 'encoder': {'conv_layer_activation': 'relu', 'embedding_dim': 16, 'ngram_filter_sizes': [3], 'num_filters': 128, 'type': 'cnn'}, 'type': 'character_encoding'} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:49:00,436 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.seq2vec_encoders.seq2vec_encoder.Seq2VecEncoder'> from params {'conv_layer_activation': 'relu', 'embedding_dim': 16, 'ngram_filter_sizes': [3], 'num_filters': 128, 'type': 'cnn'} and extras {}
2018-12-26 07:49:00,436 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.seq2vec_encoders.cnn_encoder.CnnEncoder'> from params {'conv_layer_activation': 'relu', 'embedding_dim': 16, 'ngram_filter_sizes': [3], 'num_filters': 128} and extras {}
2018-12-26 07:49:00,438 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.token_embedders.token_embedder.TokenEmbedder'> from params {'embedding_dim': 50, 'trainable': True, 'type': 'embedding'} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:49:00,447 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.modules.seq2seq_encoders.seq2seq_encoder.Seq2SeqEncoder'> from params {'bidirectional': True, 'dropout': 0.5, 'hidden_size': 200, 'input_size': 578, 'num_layers': 2, 'type': 'lstm'} and extras {'vocab': <allennlp.data.vocabulary.Vocabulary object at 0x7f7853a20668>}
2018-12-26 07:49:01,606 - INFO - allennlp.common.checks - Pytorch version: 0.4.1
2018-12-26 07:49:01,606 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.data.dataset_readers.dataset_reader.DatasetReader'> from params {'coding_scheme': 'BIOUL', 'tag_label': 'ner', 'token_indexers': {'fastai_ulmfit': {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'type': 'fastai_ulmfit_indexer'}, 'token_characters': {'min_padding_length': 3, 'type': 'characters'}, 'tokens': {'lowercase_tokens': True, 'type': 'single_id'}}, 'type': 'conll2003'} and extras {}
2018-12-26 07:49:01,606 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.data.dataset_readers.conll2003.Conll2003DatasetReader'> from params {'coding_scheme': 'BIOUL', 'tag_label': 'ner', 'token_indexers': {'fastai_ulmfit': {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'type': 'fastai_ulmfit_indexer'}, 'token_characters': {'min_padding_length': 3, 'type': 'characters'}, 'tokens': {'lowercase_tokens': True, 'type': 'single_id'}}} and extras {}
2018-12-26 07:49:01,606 - INFO - allennlp.common.from_params - instantiating class allennlp.data.token_indexers.token_indexer.TokenIndexer from params {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz', 'type': 'fastai_ulmfit_indexer'} and extras {}
2018-12-26 07:49:01,606 - INFO - allennlp.common.from_params - instantiating class allennlp.data.token_indexers.fastai_ulmfit_indexer.FastaiUlmfitIndexer from params {'model_path': '/media/discoD/models/fastai/wt103/wt103.tar.gz'} and extras {}
2018-12-26 07:49:04,703 - INFO - allennlp.common.from_params - instantiating class allennlp.data.token_indexers.token_indexer.TokenIndexer from params {'min_padding_length': 3, 'type': 'characters'} and extras {}
2018-12-26 07:49:04,704 - INFO - allennlp.common.from_params - instantiating class allennlp.data.token_indexers.token_characters_indexer.TokenCharactersIndexer from params {'min_padding_length': 3} and extras {}
2018-12-26 07:49:04,704 - INFO - allennlp.common.from_params - instantiating class allennlp.data.token_indexers.token_indexer.TokenIndexer from params {'lowercase_tokens': True, 'type': 'single_id'} and extras {}
2018-12-26 07:49:04,704 - INFO - allennlp.common.from_params - instantiating class allennlp.data.token_indexers.single_id_token_indexer.SingleIdTokenIndexer from params {'lowercase_tokens': True} and extras {}
2018-12-26 07:49:04,704 - INFO - allennlp.commands.evaluate - Reading evaluation data from /home/pedro/repositorios/portuguese-tagger/dataset/eng.testb
0it [00:00, ?it/s]2018-12-26 07:49:04,747 - INFO - allennlp.data.dataset_readers.conll2003 - Reading instances from lines in file at: /home/pedro/repositorios/portuguese-tagger/dataset/eng.testb
3453it [00:00, 9581.97it/s]
2018-12-26 07:49:05,065 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.data.iterators.data_iterator.DataIterator'> from params {'batch_size': 64, 'type': 'basic'} and extras {}
2018-12-26 07:49:05,065 - INFO - allennlp.common.from_params - instantiating class <class 'allennlp.data.iterators.basic_iterator.BasicIterator'> from params {'batch_size': 64} and extras {}
2018-12-26 07:49:05,066 - INFO - allennlp.commands.evaluate - Iterating over dataset
accuracy: 0.98, accuracy3: 0.98, precision-overall: 0.89, recall-overall: 0.90, f1-measure-overall: 0.90, loss: 72.90 ||: 100%|██████████| 54/54 [01:02<00:00, 1.03it/s]
2018-12-26 07:50:07,331 - INFO - allennlp.commands.evaluate - Finished evaluating.
2018-12-26 07:50:07,331 - INFO - allennlp.commands.evaluate - Metrics:
2018-12-26 07:50:07,331 - INFO - allennlp.commands.evaluate - accuracy: 0.9760310110907721
2018-12-26 07:50:07,331 - INFO - allennlp.commands.evaluate - accuracy3: 0.9788952298912458
2018-12-26 07:50:07,331 - INFO - allennlp.commands.evaluate - precision-overall: 0.8865728678130971
2018-12-26 07:50:07,331 - INFO - allennlp.commands.evaluate - recall-overall: 0.9036827195467422
2018-12-26 07:50:07,331 - INFO - allennlp.commands.evaluate - f1-measure-overall: 0.8950460324418615
2018-12-26 07:50:07,331 - INFO - allennlp.commands.evaluate - loss: 108.48684803644817
2018-12-26 07:50:07,371 - INFO - allennlp.models.archival - removing temporary unarchived model dir at /tmp/tmpg7gpm8_q
Process finished with exit code 0