Traceback (most recent call last):


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/cmdline.py", line 304, in main

app.build(args.force_all, filenames)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/application.py", line 331, in build

self.builder.build_update()


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 342, in build_update

'out of date' % len(to_build))


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 355, in build

updated_docnames = set(self.env.update(self.config, self.srcdir, self.doctreedir))


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/environment/__init__.py", line 565, in update

self._read_serial(docnames, self.app)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/environment/__init__.py", line 584, in _read_serial

self.read_doc(docname, app)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/environment/__init__.py", line 659, in read_doc

doctree = read_doc(self.app, self, self.doc2path(docname))


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/io.py", line 302, in read_doc

pub.publish()


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/core.py", line 217, in publish

self.settings)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/readers/__init__.py", line 72, in read

self.parse()


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/readers/__init__.py", line 78, in parse

self.parser.parse(self.input, document)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/parsers.py", line 85, in parse

self.statemachine.run(inputstring, document, inliner=self.inliner)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 170, in run

input_source=document['source'])


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run

context, state, transitions)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line

return method(match, context, next_state)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2745, in underline

self.section(title, source, style, lineno - 1, messages)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 326, in section

self.new_subsection(title, lineno, messages)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 394, in new_subsection

node=section_node, match_titles=True)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse

node=node, match_titles=match_titles)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 195, in run

results = StateMachineWS.run(self, input_lines, input_offset)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run

context, state, transitions)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line

return method(match, context, next_state)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2745, in underline

self.section(title, source, style, lineno - 1, messages)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 326, in section

self.new_subsection(title, lineno, messages)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 394, in new_subsection

node=section_node, match_titles=True)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 281, in nested_parse

node=node, match_titles=match_titles)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 195, in run

results = StateMachineWS.run(self, input_lines, input_offset)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/statemachine.py", line 239, in run

context, state, transitions)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/statemachine.py", line 460, in check_line

return method(match, context, next_state)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2318, in explicit_markup

nodelist, blank_finish = self.explicit_construct(match)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2330, in explicit_construct

return method(self, expmatch)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2073, in directive

directive_class, match, type_name, option_presets)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2122, in run_directive

result = directive_instance.run()


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/directive.py", line 133, in run

documenter.generate(more_content=self.content)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 799, in generate

self.document_members(all_members)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 720, in document_members

check_module=members_check_module and not isattr)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 1211, in generate

all_members=all_members)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 799, in generate

self.document_members(all_members)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 1200, in document_members

ModuleLevelDocumenter.document_members(self, all_members)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 720, in document_members

check_module=members_check_module and not isattr)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 786, in generate

sig = self.format_signature()


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 993, in format_signature

return Documenter.format_signature(self)
# type: ignore


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py", line 448, in format_signature

self.object, self.options, args, retann)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/application.py", line 448, in emit_firstresult

return self.events.emit_firstresult(event, self, *args)


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/events.py", line 84, in emit_firstresult

for result in self.emit(name, *args):


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/events.py", line 79, in emit

results.append(callback(*args))


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx_autodoc_typehints.py", line 140, in process_signature

return formatargspec(obj, *argspec[:-1]), None


 "/home/docs/checkouts/readthedocs.org/user_builds/matchzoo/envs/hotfix-doc/lib/python3.6/site-packages/sphinx/ext/autodoc/inspector.py", line 134, in formatargspec

if typing and hasattr(function, '__code__') else {})


 "/home/docs/.pyenv/versions/3.6.2/lib/python3.6/typing.py", line 1552, in get_type_hints

value = _eval_type(value, globalns, localns)


 "/home/docs/.pyenv/versions/3.6.2/lib/python3.6/typing.py", line 350, in _eval_type

return t._eval_type(globalns, localns)


 "/home/docs/.pyenv/versions/3.6.2/lib/python3.6/typing.py", line 245, in _eval_type

eval(self.__forward_code__, globalns, localns),


 "<string>", line 1, in <module>
NameError: name 'BaseGenerator' is not defined

Traceback (most recent call last):


 "train.py", line 307, in <module>

main()


 "train.py", line 303, in main

trainModel(model, train, valid, fields, optim)


 "train.py", line 166, in trainModel

train_stats = trainEpoch(epoch)


 "train.py", line 141, in trainEpoch

**shard)


 "/home/haixu/Desktop/OpenNMT9.4/onmt/Loss.py", line 175, in computeLoss

unbottle(scores_data), batch, self.tgt_vocab)


 "/home/haixu/Desktop/OpenNMT9.4/onmt/IO.py", line 226, in collapse_copy_scores

scores[:, b, ti] += scores[:, b, offset + i]
IndexError: index 3458 is out of range for dimension 1 (of size 3458)
