Traceback (most recent call last):


 "/home/harshn/anaconda3/bin/allennlp", line 8, in <module>

sys.exit(run())


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/__main__.py", line 19, in run

main(prog="allennlp")


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/commands/__init__.py", line 92, in main

args.func(args)


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/commands/train.py", line 112, in train_model_from_args

dry_run=args.dry_run,


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/commands/train.py", line 171, in train_model_from_file

dry_run=dry_run,


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/commands/train.py", line 230, in train_model

dry_run=dry_run,


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/commands/train.py", line 418, in _train_worker

params=params, serialization_dir=serialization_dir, local_rank=process_rank,


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/common/from_params.py", line 580, in from_params

**extras,


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/common/from_params.py", line 611, in from_params

return constructor_to_call(**kwargs)
# type: ignore


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/commands/train.py", line 627, in from_partial_objects

model_ = model.construct(vocab=vocabulary_)


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/common/lazy.py", line 46, in construct

return self._constructor(**kwargs)


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/common/from_params.py", line 446, in constructor

return value_cls.from_params(params=deepcopy(popped_params), **constructor_extras)


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/common/from_params.py", line 580, in from_params

**extras,


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/common/from_params.py", line 611, in from_params

return constructor_to_call(**kwargs)
# type: ignore


 "/home/harshn/thesis/allennlp_tests/models/base_classifier.py", line 75, in __init__

self._classifier_input_dim = self._seq2vec_encoder.get_output_dim()


 "/home/harshn/anaconda3/lib/python3.7/site-packages/allennlp/modules/seq2vec_encoders/pytorch_seq2vec_wrapper.py", line 60, in get_output_dim

return self._module.hidden_size * (2 if is_bidirectional else 1)


 "/home/harshn/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 594, in __getattr__

type(self).__name__, name))
AttributeError: 'AugmentedLstm' object has no attribute 'hidden_size'

Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner

response = get_response(request)


 "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 187, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/usr/lib/python3.6/site-packages/django/core/handlers/base.py", line 185, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/usr/lib/python3.6/site-packages/django/views/decorators/cache.py", line 43, in _cache_controlled

response = viewfunc(request, *args, **kw)


 "/usr/lib/python3.6/site-packages/wagtail/wagtailadmin/decorators.py", line 31, in decorated_view

return view_func(request, *args, **kwargs)


 "/usr/lib/python3.6/site-packages/wagtail/api/v2/router.py", line 65, in wrapped

return func(request, *args, **kwargs)


 "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view

return view_func(*args, **kwargs)


 "/usr/lib/python3.6/site-packages/rest_framework/viewsets.py", line 90, in view

return self.dispatch(request, *args, **kwargs)


 "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 489, in dispatch

response = self.handle_exception(exc)


 "/usr/lib/python3.6/site-packages/wagtail/api/v2/endpoints.py", line 95, in handle_exception

return super(BaseAPIEndpoint, self).handle_exception(exc)


 "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 449, in handle_exception

self.raise_uncaught_exception(exc)


 "/usr/lib/python3.6/site-packages/rest_framework/views.py", line 486, in dispatch

response = handler(request, *args, **kwargs)


 "/usr/lib/python3.6/site-packages/wagtail/wagtailadmin/api/endpoints.py", line 93, in listing_view

response = super(PagesAdminAPIEndpoint, self).listing_view(request)


 "/usr/lib/python3.6/site-packages/wagtail/api/v2/endpoints.py", line 81, in listing_view

return self.get_paginated_response(serializer.data)


 "/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 739, in data

ret = super(ListSerializer, self).data


 "/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 263, in data

self._data = self.to_representation(self.instance)


 "/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 657, in to_representation

self.child.to_representation(item) for item in iterable


 "/usr/lib/python3.6/site-packages/rest_framework/serializers.py", line 657, in <listcomp>

self.child.to_representation(item) for item in iterable


 "/usr/lib/python3.6/site-packages/wagtail/api/v2/serializers.py", line 284, in to_representation

meta[field.field_name] = field.to_representation(attribute)


 "/usr/lib/python3.6/site-packages/wagtail/api/v2/serializers.py", line 91, in to_representation

name = page.specific_class._meta.app_label + '.' + page.specific_class.__name__
AttributeError: 'NoneType' object has no attribute '_meta'
