-
Notifications
You must be signed in to change notification settings - Fork 3.1k
add unsupervised qa #4193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add unsupervised qa #4193
Conversation
|
Thanks for your contribution! |
Codecov Report
@@ Coverage Diff @@
## develop #4193 +/- ##
===========================================
+ Coverage 34.06% 36.36% +2.29%
===========================================
Files 405 419 +14
Lines 56613 59169 +2556
===========================================
+ Hits 19288 21514 +2226
- Misses 37325 37655 +330
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议这些scrip删除
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的
|
|
||
| import paddle | ||
| from evaluate import evaluate | ||
| from model import UIE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前 UIE已经集成到transformers里面 建议替换一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
更新了UIE的调用方式,同时新增了新增uie-base-answer-extractor及uie-base-qa-filter模型权重
#4259
| from paddlenlp.utils.tools import get_bool_ids_greater_than, get_span | ||
|
|
||
|
|
||
| class SpanEvaluator(Metric): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看看SpanEvaluator是不是已经集成到PaddleNLP,或者直接调库也能使用
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,这个已经集成在paddlenlp.metrics,但是这里需要对SpanEvaluator做一下升级才可以,因为答案抽取的评估需要测试覆盖率,而SpanEvaluator当前没有这个能力,需要升级一下,我提了个PR #4195
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
目前已提前把这一块删除了
wawltor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
Models
Description
新增无监督问答