Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relation between Entities and Intents #503

Closed
vkrgowtham opened this issue Jul 27, 2017 · 8 comments
Closed

Relation between Entities and Intents #503

vkrgowtham opened this issue Jul 27, 2017 · 8 comments
Labels
type:question 💬 Question around usage, examples

Comments

@vkrgowtham
Copy link

Hi,
Q1) Is there any relation between entity and intent classification in the pipeline (or) does both of them function separately in the pipeline? For example training classifier without any entity data will it affect the intent classification ?

Q2) I have read the medium article Alan where he explains even average of word2vec's of a sentence give decent performance. My question is what exactly are you doing to represent a sentence for classification after getting word embeddings for each word ?

Thank you.

@PHLF
Copy link
Contributor

PHLF commented Jul 27, 2017

  1. Yes they work independently
  2. Depends on the featurizer you use, for instance with spacy

@vkrgowtham
Copy link
Author

Thanks for the reply. Do you know about mitie ?

@wrathagom
Copy link
Contributor

MITIE is an option for both intent and entity recognition in the Rasa pipeline. https://rasa-nlu.readthedocs.io/en/latest/pipeline.html#pre-configured-pipelines

@vkrgowtham
Copy link
Author

For classification we need vector for each sentence. So in the mitie pipeline, after getting spectral word embeddings for each word, what did you do to obtain a single vector for sentence. Is it just an average of all the word embeddings present in the sentence ?

@wrathagom wrathagom added the type:question 💬 Question around usage, examples label Jul 27, 2017
@wrathagom
Copy link
Contributor

@PHLF or @tmbo may know the answer to that off the top of their head. I would have to dig through code.

Here's the Rasa MITIE classifier component code if you want to look yourself. https://github.com/RasaHQ/rasa_nlu/blob/master/rasa_nlu/classifiers/mitie_intent_classifier.py

@vkrgowtham
Copy link
Author

From what i understood from mitie_featurizer.py, it's just an average of all spectral word embeddings present in the sentence.(https://github.com/RasaHQ/rasa_nlu/blob/76fe1e38c49cac158a3fae55d17eb72af4ef6745/rasa_nlu/featurizers/mitie_featurizer.py#L71)
Please correct me @PHLF @tmbo

@PHLF
Copy link
Contributor

PHLF commented Jul 27, 2017

Looks like you're right.

@wrathagom
Copy link
Contributor

I'm closing, but let us know if you have more questions.

taytzehao pushed a commit to taytzehao/rasa that referenced this issue Jul 14, 2023
…HQ#503)

This fixes RasaHQ#499, where a matrix strategy with only include keys ends up
causing multiple builds.  This bugs appears to have been introduced in RasaHQ#415,
when extra include keys are added in the matrix strategy.  The cause
seems to be because the CartesianProduct function returns an item with
empty keys, instead of return an empty set.

Co-authored-by: Ed Tan <edtan@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question 💬 Question around usage, examples
Projects
None yet
Development

No branches or pull requests

3 participants