Skip to content

利用MLM-prompt learning 做 Zero-Shot/Few-Shot/Semi-Supervised

License

Notifications You must be signed in to change notification settings

nishiwen1214/Prompt-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pattern-Exploiting Training (PET)

基于苏神代码的修改,苏神之前的代码prompt只能放在句子前面,因为[mask]的位置是一个固定的值。 现在修改后可以基于[CLS]和[SEP]这两个token来定位[mask]的位置,可以满足各种prompt的需求。

image

环境

bert4keras>=0.10.8, tensorflow = 1.15.0, keras = 2.3.1;

解读

苏神的博客:https://kexue.fm/archives/7764

About

利用MLM-prompt learning 做 Zero-Shot/Few-Shot/Semi-Supervised

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages