xusenlinzy / lit-ie Goto Github PK
View Code? Open in Web Editor NEWA training and inference framework for open ner and re models! 信息抽取模型的统一训练和推理框架,包含丰富的开源SOTA模型
License: Apache License 2.0
A training and inference framework for open ner and re models! 信息抽取模型的统一训练和推理框架,包含丰富的开源SOTA模型
License: Apache License 2.0
如题 关系抽取等任务是否可以使用其他预训练模型
你好,我使用这个项目中提供的crf.sh跑实体识别,跑了大概8个epoch,p,r,f1都是0,使用的数据也是项目中提供的,换成span方式是正常的。另外,选择softmax或者cascade_crf方式时是不是只需要修改脚本中的TASK_NAME为对应的名称就行了,我修改之后报以下错误:
Traceback (most recent call last):
File "main.py", line 33, in
main()
File "main.py", line 27, in main
model.finetune(data_args)
File "/home/nlp_service/anaconda3/envs/uie/lib/python3.8/site-packages/litie/models/base.py", line 71, in finetune
self.engine = self.create_engine()
File "/home/nlp_service/anaconda3/envs/uie/lib/python3.8/site-packages/litie/models/ner.py", line 14, in create_engine
return NerEngine(
File "/home/nlp_service/anaconda3/envs/uie/lib/python3.8/site-packages/litie/engines/ner.py", line 24, in init
super().init(model_type, task_model_name, model_config_kwargs=model_config_kwargs, **kwargs)
File "/home/nlp_service/anaconda3/envs/uie/lib/python3.8/site-packages/litie/engines/base.py", line 80, in init
self.initialize_model(self.pretrained_model_name_or_path, config, model)
File "/home/nlp_service/anaconda3/envs/uie/lib/python3.8/site-packages/litie/engines/base.py", line 118, in initialize_model
model = self.get_auto_model(self.model_type, self.task_model_name)
File "/home/nlp_service/anaconda3/envs/uie/lib/python3.8/site-packages/litie/engines/ner.py", line 32, in get_auto_model
return AutoNerTaskModel.create(
File "/home/nlp_service/anaconda3/envs/uie/lib/python3.8/site-packages/litie/nn/ner/init.py", line 34, in create
return cls.registry[class_key](model_type, **kwargs)
TypeError: get_auto_cascade_crf_ner_model() got an unexpected keyword argument 'base_model'
苏神,请教下,我现在需要处理的序列是4096长度的,在bert上接入了efficient global pointer结构,26分类,结果非常慢,debug看了下有两个问题:
self.global_pointer = EfficientGlobalPointer(
768,
self.num_labels,
64,
use_rope=True
)
请问如果换做sparse矩阵加速会很多吗?在超长序列下EGP是否有效率问题?
如上,谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.