Rasa: Support multiple intents per message

Created on 15 May 2017  路  8Comments  路  Source: RasaHQ/rasa

Does Rasa allow multiple intents per example? For instance, the sentence
"Please go to the office and pick up the files" has two intents: go_to_office and pick_up_files. How can I capture this in Rasa?

help wanted type

Most helpful comment

Another approach would be split sentences in to possible clauses and then find intent for each clause. Then combine the results. In above example "Please go to the office" and "pick up the files" will be the two clauses. Easy hack :) . I am planning to open source a project on clause identification for English.

All 8 comments

It's something we would like to support in the future, but don't have currently I'm afraid. If you would like to start work on contributing this that would be awesome! You'd get plenty of support from the maintainers :)

Another approach would be split sentences in to possible clauses and then find intent for each clause. Then combine the results. In above example "Please go to the office" and "pick up the files" will be the two clauses. Easy hack :) . I am planning to open source a project on clause identification for English.

@srijiths awesome, please keep us updated on how that goes.

@srijiths how's that project coming along? ;)

@tmbo you can close this issue. I have started it. Will let you know.

Re-read, sounds like the Rasa team wants to support it, so leave it open as a place holder either for their work or yours. I'll add the help wanted label.

There is nothing out there to extract clauses. Neither spacy, syntaxnet, nor commercial products such MS cognitive services or even Googles NLP api offer this.

This works in toy examples, but I don't know if/how it scales

## intent: pickupfiles
- Pick up the files

## intent: go_to_office
- Go to the office

## intent: go_to_office_pickupfiles
- Go to the office and pick up the files

This is now supported through the tensorflow embedding pipeline. The syntax is go_to_office+pickupfiles though.

Was this page helpful?
0 / 5 - 0 ratings