How to annotate data in nlu.md
such that for a single text/message I have multiple independent labels?
I want to have intent and sentiment both for a give message and train two different models: intent classification and sentiment classification.
How might I achieve this?
## intent: scold && good
- dude, what went wrong with the experiment?
## intent: scold && bad
- dude, how in the f you mess up the experiment?
As you can see, I want to annotate a single message with multiple labels to train multiple models.
I am guessing the solution might look something like this:
## intent: scold
- dude, what went wrong with the experiment?
- dude, how in the f you mess up the experiment?
## sentiment: good
- dude, what went wrong with the experiment?
##sentiment: bad
- dude, how in the f you mess up the experiment?
and then in the train
method of the intent classifier and sentiment classifier component
s, do:
example.get("intent")
and
example.get("sentiment")
to get the respective labels.
- Is this possible?
- There is duplication of data, and the size of
nlu.md
might increase. Is there easier way to do this?
Also, if the proposed solution is indeed possible, what identifier am I not allowed to use? (because they are reserved by rasa
)
## {IDENTIFIER} : label
I know that the IDENTIFIER can’t be : synonym
, lookup
, regex
. What other IDENTIFIER
s are reserved?