Giter VIP home page Giter VIP logo

Comments (5)

rodrigopivi avatar rodrigopivi commented on May 29, 2024 2

ahh i see your point @albertotonon , let me think about this use cases a bit more, but something like this could work:

%[x]
  my parcel should be delivered in @[delivery_time|variation1]
  my parcel should be delivered @[delivery_time|variation2]

@[delivery_time|variation1]
    3 days
    5 hours

@[delivery_time|variation2]
    as fast as possible
    quickly

Would need to implement this kind of custom argument variations to be able to combine sentences more selectively but also map to the same entity name

from chatito.

rodrigopivi avatar rodrigopivi commented on May 29, 2024

hi, maybe some of this ways work for you?:

%[x]
    my parcel should be delivered @[delivery_time] 

@[delivery_time]
    in 3 days days
    as fast as possible

or

%[x]
    my parcel should be delivered in @[delivery_time] days
    my parcel should be delivered as fast as possible

@[delivery_time]
    3 days

let me know if any of this works for you or what specific need you have

from chatito.

albertotonon avatar albertotonon commented on May 29, 2024

thanks for your answer, both ways do not work in my case or in general, unfortunately.
Option 1 works in that specific case but I cannot generalise it to other datasets since it's not always possible to rephrase sentences as you did :(
Option 2 does not mark "as fast as possible" as a slot.
What I think could be a very nice feature for chatito is the possibility of declaring templates such as

%[x]
  my parcel should be delivered in @[delivery_time] days
  my parcel should be delivered @[delivery_time as fast as possible]

Where in the second option both the slot type and the string are specified. What do you think?
I would code it myself but, unfortunately, I've never used JS :(

from chatito.

albertotonon avatar albertotonon commented on May 29, 2024

thanks for your prompt answer. Looking forward to the new version of chatito!

from chatito.

rodrigopivi avatar rodrigopivi commented on May 29, 2024

@albertotonon version 2.0.0 is released and this is fixed now, please read the docs, cheers

from chatito.

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.