BrikerMan / Kashgari

Kashgari is a production-level NLP Transfer learning framework built on top of tf.keras for text-labeling and text-classification, includes Word2Vec, BERT, and GPT2 Language Embedding.
http://kashgari.readthedocs.io/
Apache License 2.0
2.39k stars 441 forks source link

[Question] importError: cannot import name 'BLSTMModel',为何import总是失败啊 #209

Closed ghost closed 5 years ago

xmy7216 commented 5 years ago

你试试BiLSTM_Model

ghost commented 5 years ago

谢谢,看了下源码,明白了

from kashgari.tasks.labeling.models import CNN_LSTM_Model

from kashgari.tasks.labeling.models import BiLSTM_Model from kashgari.tasks.labeling.models import BiLSTM_CRF_Model

from kashgari.tasks.labeling.models import BiGRU_Model from kashgari.tasks.labeling.models import BiGRU_CRF_Model