from nltk import data
data.path.append(r"G:\nltk_data")
参考文档:https://www.jianshu.com/p/fd7073c1401e

原来utils是它这个项目自己写的模块!

import theano
from theano import tensor
# declare two symbolic floating-point scalars
a = tensor.dscalar()
b = tensor.dscalar()
# create a simple expression
c = a + b
# convert the expression into a callable object that takes (a,b)
# values as input and computes a value for c
f = theano.function([a,b], c)
# bind 1.5 to 'a', 2.5 to 'b', and evaluate 'c'
assert 4.0 == f(1.5, 2.5)
我改用tumx就可以了。不知道为什么。
import sys
print(sys.path)
sys.path.append("/XX/XXX")
pip debug --verbose

采用命令行的方式进行调试:ipdb
首先需要安装ipdb
pip install ipdb
在终端上输入 python -m ipdb xxx.py就可以一行一行的调试了。
或者,在xxx.py文件中在需要中断的地方插入上如下代码:
from ipdb import set_trace
set_trace()
xxx.py程序跑的时候就会在你设置断点的位置停下来。但是并不建议使用在源代码中插入代码来达到断点的作用,因为这样破坏了程序源代码的完整性。
纯命令行调试的一些常用指令:
chmod +x script.sh
./script.sh
https://www.numpy.org.cn/reference/