-
按以下步骤安装和执行报错
```
cd /home/datad/pyroot/similartext/Keras-TextClassification
python3 -m pip install --upgrade pip
python3 -m venv env
source ./env/bin/activate
pip3 install --upgrade se…
-
需要测试短文本相似度。项目包下所有PY文件看了一圈,猜测好像是test/sentence_similarity目录下的train和predict,实现了这个这个功能。
不知道我猜的对不对。
然后执行:
/Keras-TextClassification/test/sentence_similarity$ python train.py
时报错:
```
File "pa…
-
readme介绍了一种安装方式
```
pip install Keras-TextClassification
step2: download and unzip the dir of 'data.rar'...
step3: goto ...
```
但是目录下却有个setup.py,请问这个文件是做什么用的?
-
graph好像传递不到flask的响应函数里。
如果放到函数里边,那每次请求又会重新加载模型。
请问有什么解决办法,谢谢!
```
# 模型图
from keras_textclassification.m00_Bert.graph import BertGraph as Graph
app = Flask(__name__)
# 加载超参数
hyper_par…
-
请教一下作者,我在transformer结构中选择加载了word2vec,运行的时候提示valueerror,定位了挺久,还是不知道是什么原因
File "/Downloads/Keras-TextClassification-master/keras_textclassification/m14_Transformer/train.py", line 99, in
tr…
-
pip install Keras-TextClassification -i https://pypi.tuna.tsinghua.edu.cn/simple
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/78/17/f611fc9bc62d072e069b1bc504d299dc0bd8b1bb8043f7b2252f4…
-
执行Keras-TextClassification/test/sentence_similarity/predit.py时报错:
```
Traceback (most recent call last):
File "predict.py", line 155, in
pred_tet(path_test=path_sim_webank_test, rate=1) …
-
Hi, I used the TextClassification example and create my own model with these configurations:
```
# it said that batch_size must be dividable by core_num and my core_num is 6
batch_size = 66
emb…
-
### Bug Description
Simply copy-pasting the code from the example usage for TextClassification gives the following error in Colab:
`/usr/local/lib/python3.6/dist-packages/tensorflow/python/frame…
-
在安装keras_textclassificattion的时候把我anaconda里面的tensorflow1.9 keras2.20卸载了。看了一下发现是要tf-gpu吗。
请问对tf和keras的版本要求能不能详细告知