1 Star 6 Fork 0

Lu/relation-extraction-with-active-learning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
batch_run.py 724 Bytes
一键复制 编辑 原始数据 按行查看 历史
import os
select_methods = ['ensemble_sample_by_weight', 'random', 'uncertainty']
concretes = [[''], [''], ['entropy_sampling']]
# 在第k份数据上,用select_methods[i][j]采样方法来挑选样本
for k in range(1, 2):
for i in range(len(select_methods)):
for j in range(len(concretes[i])):
py_cmd = "python main.py select_method='" + str(select_methods[i]) + "' concrete='" + str(
concretes[i][j]) + "' data_path='data/origin_" + str(k) + "' out_path='data/out_" + str(k) + "'"
print(py_cmd)
try:
os.system(py_cmd)
except:
print('当前程序出错,直接跳过运行下一个')
continue
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yiweilu/relation-extraction-with-active-learning.git
git@gitee.com:yiweilu/relation-extraction-with-active-learning.git
yiweilu
relation-extraction-with-active-learning
relation-extraction-with-active-learning
master

搜索帮助