kaulmonish
kaulmonish

Reputation: 408

QA generation on sub sentences - NLP

My dataset is structured like this:

Product1 - Sentence1

Product2 - Sentence2

Product3 - Sentence3

. .

etc

The sentences look like this:

Product1 - "We suggest that you wear this stylish piece with gold-toned drop earrings, churidar leggings and flats to complete an understated look."

A possible question to this can be - "Do we suggest that you wear this stylish piece with gold-toned drop earrings, churidar leggings and flats to complete an understated look?" - This is what i get using http://www.cs.cmu.edu/~ark/mheilman/questions/

But, I want questions/answers like this:

Q: How can I get an understated look?

A: You can try Product1 for an understated look.

Q: What can I wear with gold-toned drop earrings?

A: You can wear Product1 with gold-toned drop earrings.

Q: What will give me a complete look with churidar leggings?

A: Product1 will.

So, what i feel I want to do is - to create sub-question on the nouns/proNouns and adjectives in an semantically correct putting product in context.

Upvotes: 8

Views: 229

Answers (2)

Abdul Wasae
Abdul Wasae

Reputation: 3686

Please have a look at Google Cloud Natural Language API

It has 'Entity Recognition' which might help your purpose. Here are the some sample implementations.

Upvotes: 3

rakwaht
rakwaht

Reputation: 3967

I suggest you to take a look for natural language services on the internet. Sometimes ago I had a similar problem and I solved it by using a service that you can finde here.

On the website this is defined as:

"API.AI is a natural language understanding platform that makes it easy for developers (and non-developers) to design and integrate intelligent and sophisticated conversational user interfaces into mobile apps, web applications, devices, and bots."

The really cool thing about this is that you can train it with some

Upvotes: 1

Related Questions