GithubHelp home page GithubHelp logo

the meaning of latent time about duckling HOT 4 CLOSED

facebook avatar facebook commented on April 20, 2024
the meaning of latent time

from duckling.

Comments (4)

shaoyx avatar shaoyx commented on April 20, 2024 1

Hi @patapizza ,
Thanks for the detailed explanation.
For the first case, returning a non-latent token does help.

For the second case, as you suggested, adding an extra rule will works. However, the original source code has contained a rule called ruleIntersect :: Rule, which require two non-latent Time token. So return a non-latent token from ruleMonthNumericWithMonthSymbol also helps.

Therefore, removing the mkLatent function may be a good choice.

from duckling.

patapizza avatar patapizza commented on April 20, 2024

Hi @simon0227,

Latent tokens are intermediate layers of final tokens. They potentially hold some information about the dimension, but the information found is not enough to fully express an instance of the dimension (think necessary vs sufficient conditions).

I'm not familiar with Chinese, though it looks like 月 is a symbol that indicates a month. In this case, this shouldn't be latent (as 'May' for English). Updating ruleMonthNumericWithMonthSymbol to return a non-latent token would help recognizing "5月" as Time.
To recognize "2017年5月" though, it would require an extra rule that takes a year, the symbol 年, and a month (does this make sense?). Strictly speaking, this doesn't require ruleMonthNumericWithMonthSymbol to return a non-latent token.

Hope this helps.

from duckling.

patapizza avatar patapizza commented on April 20, 2024

Oh 年 is the year symbol. Sounds good, let's do that.

from duckling.

shaoyx avatar shaoyx commented on April 20, 2024

Yeah, 年 is the year symbol and 月 is the month symbol.

from duckling.

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.