我试着用LSTM和预先训练的BERT嵌入来进行情感分类,然后用转换器进行语言翻译,首先我下载了!在最快的收敛性和稳定性之间找到平衡model = text.text_classifier('bert', trn , preproc=preproc)is selected model, then preprocess_mode='%s' should be used and vice versa"
--
是否可以使用该模型来检测字符串(地址、公司或日期)在较大文本中的位置?我认为这种模型被称为NER模型(命名实体识别)。text = "What do you think about Amazon and their customer policy?"如何检测" Amazon“的开始索引和结束索引,或者如何从该文本中仅提取Amazon?因此,我想要:{"company": "Amazon Inc"