微调BERT用于提取摘要的论文代码
2021-05-11 19:36:43 14.99MB Python开发-自然语言处理
1
20ms的信号 可以微调0.5-2.5的信号来控制舵机 51单片机 12M晶振 按键控制 程序简单易懂
2021-05-06 23:09:42 1KB 舵机控制 20ms 0.5ms 微调
1
情绪分析 在 上通过微调 , 或训练的情感分析神经网络。 安装要求 pip install numpy pandas torch transformers 使用我在s3上载的模型分析您的输入 python analyze.py 火车模型 python train.py --model_name_or_path bert-base-uncased --output_dir my_model --num_eps 2 支持bert-base-uncase,albert-base-v2,distilbert-base-uncase和其他类似模型。 评估您训练的模型 python evaluate.py
2021-04-03 15:58:11 16.94MB nlp flask machine-learning vuejs
1
具体使用方法可以看我的博客:https://blog.csdn.net/weixin_40015791/article/details/90410083 下面也会简单介绍一下:在bert开源代码中的run_classifier.py中找到 processors = { "cola": ColaProcessor, "mnli": MnliProcessor, "mrpc": MrpcProcessor, "xnli": XnliProcessor, "intentdetection":IntentDetectionProcessor, "emotion":EmotionProcessor, #新加上这一行 } 然后在该文件中增加一个class: class EmotionProcessor(DataProcessor): """Processor for the MRPC data set (GLUE version).""" def get_train_examples(self, data_dir): """See base class.""" return self._create_examples( self._read_tsv(os.path.join(data_dir, "fine_tuning_train_data.tsv")), "train") #此处的名字和文件夹中的训练集的名字要保持一致 def get_dev_examples(self, data_dir): """See base class.""" return self._create_examples( self._read_tsv(os.path.join(data_dir, "fine_tuning_val_data.tsv")), "dev") def get_test_examples(self, data_dir): """See base class.""" return self._create_examples( self._read_tsv(os.path.join(data_dir, "fine_tuning_test_data.tsv")), "test") def get_labels(self): """See base class.""" return ["0", "1","2","3","4","5","6"] #七分类则从0到6 def _create_examples(self, lines, set_type): """Creates examples for the training and dev sets.""" examples = [] for (i, line) in enumerate(lines): if i == 0: continue guid = "%s-%s" % (set_type, i) if set_type == "test": label = "0" text_a = tokenization.convert_to_unicode(line[0]) else: label = tokenization.convert_to_unicode(line[0]) text_a = tokenization.convert_to_unicode(line[1]) examples.append( InputExample(guid=guid, text_a=text_a, text_b=None, label=label)) return examples 最后直接调用即可,运行的命令如下: python run_classifier.py \ --task_name=emotion \ --do_train=true \ --do_eval=true \ --data_dir=data \ #把数据解压到同一级的文件夹中,此处是该文件夹名字data --vocab_file=chinese_L-12_H-768_A-12/vocab.txt \ #中文数据要微调的原始bert模型 --bert_config_file=chinese_L-12_
2021-03-31 14:02:01 599KB 中文情绪 bert 微调
1
finetune-gpt2xl 在单个16 GB VRAM V100 Google vm上微调GPT2-XL(15亿个参数)。
2021-03-27 20:21:01 49KB Python
1
目前,全球有 103 个国家或地区生产食糖,全球食糖总产量为 1.9 亿吨左右,其中 80%是甘蔗糖,20%为甜菜糖。巴西过去是世界最大的产糖国,2018/2019 榨季产量 2913 万吨,被印度超过,印度 2018/2019 榨季产糖在 3000 至 3400 万吨之间。第三大产糖体为欧盟,不同于巴西和印度,欧盟主要为甜菜糖。在主要产糖国中,从糖料种植水平、单产含糖量及糖厂规模和自动化程度等总体水平比较,甘蔗糖以澳大利亚的整体水平最高,含糖量 15.11%,糖厂规模多在日榨蔗万吨以上;甜菜糖则以法国最优,含糖量 17.5%,糖厂规模在万吨以上的居多。 糖业是我国农业的支柱产业之一,其产量
2021-03-25 17:10:10 1.42MB 食品 调味品 饮料 酒水
1
5. 网络 微调预训练网络RESNET pytorch源码,天气数据四分类问题
2021-02-24 19:09:31 82KB 深度学习
1
VC微调按钮(旋转控件)_spin微增微减控件的用法.zip
2021-01-29 14:06:29 12KB 微调按钮 旋转控件 c++ vc
利用opengl实现瘦脸等脸部微调,VS2019的c++工程,环境都在里面,可以直接运行看效果。特征点利用dlib识别出来的。
2021-01-26 16:50:59 151.34MB 瘦脸 opengl dlib opencv
1
vue +springboot前后端分离项目(微调过一个大神的项目)mall,本人使用腾讯云,亲自打包并且配置nginx mysql 进行发布,并有详细的发布安装文档
2020-01-03 11:17:33 190.37MB vue springboot nginx代理 centos7.5
1