Coder Social home page Coder Social logo

请教下作者xu-song, case里面中文句子打分,用的是分词后的模型,还是单字的模型呢。 about bert-as-language-model HOT 1 CLOSED

xu-song avatar xu-song commented on July 26, 2024
请教下作者xu-song, case里面中文句子打分,用的是分词后的模型,还是单字的模型呢。

from bert-as-language-model.

Comments (1)

xu-song avatar xu-song commented on July 26, 2024
  1. case里的中文句子打分,用的是单字模型。当然也可以先分词,然后用whole word mask的方式预测概率。

另外看到一些评论说, bert不能作为语言模型对句子合理性打分,记得是bert 官方的回复, 您怎么理解。

是,bert对句子打分不严谨。test.zh.md中在缺陷里也提到了,这里对句子打分是简单的近似,并不符合基于markov的联合概率分布。有一定的参考意义,但不能作为严格意义上的ppl。

BERT is not able to model the joint probability using the product rule as in autoregressive models

from bert-as-language-model.

Related Issues (18)

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.