ernie:使用Keras TensorFlow 2进行的基于BERT的简单最新句子分类。使用HuggingFace的变形金刚构建 源码
BERT的最好的朋友。 安装 Ernie需要Python 3.6或更高版本。 pip install ernie 微调 句子分类 from ernie import SentenceClassifier , Models import pandas as pd tuples = [( "This is a positive example. I'm very happy today." , 1 ), ( "This is a negative sentence. Everything was wrong today at work." , 0 )] df = pd . D
文件列表
ernie-master.zip
(预估有个25文件)
ernie-master
install.sh
47B
upload.sh
65B
requirements.txt
114B
examples
binary_classifier.py
713B
LICENSE
11KB
test
example.csv
123B
split_aggregate.py
17KB
暂无评论