Giter VIP home page Giter VIP logo

Comments (4)

rodrigopivi avatar rodrigopivi commented on May 30, 2024 1

hi @munaAchyuta

if you are working with Rasa multi intents, an example like this should work:

%[greet]("training": "1")
    ~[greet]

%[inform]("training": "1")
    ~[my name is] @[name]

%[greet+inform]("training": "1")
    ~[greet] ~[my name is] @[name]

~[my name is]
    my name is
    you can call me
    i'm

~[greet]
    hi
    hello

@[name]
    achyuta
    muna

from chatito.

rodrigopivi avatar rodrigopivi commented on May 30, 2024

hi @AlvaroMonteagudo,
atm i am against adding nesting to intents, the DSL wont prevent you from writing a custom adapter to generate two intents, something like, for example you can add something like:

%[greet]
   ~[greet]

%[inform]
   ~[mi nombre] @[nombre]

%[greet AND inform]
    ~[greet] ~[mi nombre] @[nombre]

~[mi nombre]
    Mi nombre es
    Me llamo
    Puedes llamarme

~[greet]
    Hola
    Ey
    Buenas
    Buenos días
    Buenas tardes
    Buenas noches

i think this is more or less what you want to do.. yeah there is still some repetition, maybe adding slots inside alisases would help reduce the code..

now once you have this DSL you can write your own custom adapter using the npm package (use the rasa adapter as reference: https://github.com/rodrigopivi/Chatito/blob/master/src/adapters/rasa.ts), then the name of the intent can be split by the AND key and you generate two intents, does this help you?

from chatito.

rodrigopivi avatar rodrigopivi commented on May 30, 2024

@AlvaroMonteagudo

Thanks for your feedback, just released v2.1.0 with support for the + at the intent definition names, this should now work out of the box by default, feel free to reopen the issue if you have any other issues on this topic, thanks!

from chatito.

munaAchyuta avatar munaAchyuta commented on May 30, 2024

Hi,
can we have model which can generate distinguished sentence with intent from given input text.
like below example :
"Turn the bathroom light off and remind me to take the trash out."
There are two independent intents here:
turn_lights, set_reminder.
similarly another example : "Hey what's up? do you guys offer free trial?"
there are two intents here : greetings , product_pricing

Thanks & Regards,
Achyuta nanda Sahoo

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.