Coder Social home page Coder Social logo

Comments (4)

LeeSureman avatar LeeSureman commented on August 22, 2024 2

这里是只用到了两个特征,主要是出于在效果等价的情况下节省显存的考虑,因为我们现在用的是一层的transformer嘛,过了transformer之后得到的词的表示我们是不需要的,只需要用字的表示去做标签分类,由于字的长度始终是1,所以ss和ee就足以携带字和词之间的位置关系了。但是对于两层及以上的transformer,ss和ee不足以建模词与词之间的位置关系,这个时候就需要用到4个相对位置特征了

from flat-lattice-transformer.

nefujiangping avatar nefujiangping commented on August 22, 2024

好的,明白啦,谢谢你的回复~

from flat-lattice-transformer.

LawsonAbs avatar LawsonAbs commented on August 22, 2024

后得到的词的表示我们是不需要的,只需要用字的表示去做标签分类,由于字的长度始终是1,所以ss和ee就足以携带字和词之间的位置关系了。但是对于两层及以

为什么“过了transformer之后得到的词的表示我们是不需要的”??? 是因为词的embedding都是从字典中找到训练好的表示吗?

from flat-lattice-transformer.

LeeSureman avatar LeeSureman commented on August 22, 2024

后得到的词的表示我们是不需要的,只需要用字的表示去做标签分类,由于字的长度始终是1,所以ss和ee就足以携带字和词之间的位置关系了。但是对于两层及以

为什么“过了transformer之后得到的词的表示我们是不需要的”??? 是因为词的embedding都是从字典中找到训练好的表示吗?

我们最终只需要在字token上做序列标注

from flat-lattice-transformer.

Related Issues (20)

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.