tuzhaopeng/NMT-Coverage

AttributeError: 'module' object has no attribute 'prototype_search_with_coverage_state'

Closed this issue · 2 comments

你好:

我在使用的时候出现了“AttributeError: 'module' object has no attribute 'prototype_search_with_coverage_state'” 这个问题?

请教一下,这是什么原因呢。

image

"prototype_search_with_coverage_state" 是experiments/nmt/state.py中的定义的一个prototype(可以认为是一个dict),在运行该代码之前,你首先需要安装整个包,这样程序才能找到对应位置的state.py:

To install NMT-Coverage in a multi-user setting

python setup.py develop --user

For general installation, simply use

python setup.py develop

NOTE: This will install the development version of Theano, if Theano is not currently installed.

非常感谢,这么快的回复我:)