Giter VIP home page Giter VIP logo

efficient-globalpointer's People

Contributors

powerycy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

efficient-globalpointer's Issues

如果需要更在英文数据集下完成,比如ConLL2003

如题。“尝试在英文数据集下进行训练,比如ConLL2003,换用了预训练模型,将chinese_roberta_wwm_ext, 更改为Roberta(https://huggingface.co/FacebookAI/roberta-base)。同时也看到苏神原文中也有描述

“jemmeryl
November 22nd, 2022

请问大佬,这个模型在英文数据集上做实验时,因为英文会对单词进行分词,比如原本的实体['mr.', 'lippens']会变成['mr', '.', 'lip', '##pen', '##s'],那token_start_index和token_end_index计算时要怎么计算呢

回复评论
苏剑林 发表于 November 23rd, 2022
你这个问题是有问题的,我回答不了。

如果你用的BERT,那么原本的实体就是['mr', '.', 'lip', '##pen', '##s'],没有“原本的实体['mr.', 'lippens']”这种说法。先选定tokenizer,然后得到tokens,然后才去构造标签,这是很自然的顺序。标签不是与生俱来的,也不是天上掉下来的,是根据你的tokens来构造的。

回复评论

是否因为英文分词而无法适配?或者需要将分词后的结果完成原词映射转换才行?

关于linear_1,2两个全连接层的疑问?

self.linear_1 = nn.Linear(hidden_size,hidden_size * 2,bias=True) self.linear_2 = nn.Linear(hidden_size * 2,heads * 2,bias=True)

这似乎与苏神的不一样吧?苏神的是
self.dense_1 = Dense( units=self.head_size * 2, use_bias=self.use_bias, kernel_initializer=self.kernel_initializer ) self.dense_2 = Dense( units=self.heads * 2, use_bias=self.use_bias, kernel_initializer=self.kernel_initializer )
第一个全连接层您的输出是hidden_size * 2,苏神的是head_size * 2

复现问题

您好,我拉了您的代码在3090上跑,参数不变,验证集最好的F1值只有0.65277,比您的少了一个点

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.