Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write python code to make semantic network for *simple sentence using NLP techniques and Cypher. 1. Sample Sentences: 2. Hina has a Dog . 3.

Write python code to make semantic network for *simple sentence using NLP techniques and Cypher.

1. Sample Sentences:

2. Hina has a Dog

. 3. Ali is son of Hina.

4. Hussain loves Dogs.

5. Ali has a van.

6. Dogs sits in van.

Note: *Simple sentences are of the order of (Noun Phrase, Verb Phrase, Noun Phrase)

............................

Write cypher to generate the Semantic Network from the following sentences:

1. Peter has a Mare named Marie Gold.

2. Marie Gold has white mane.

3. John is the only son of Peter.

4. Josh doesnt love horses but loves dogs.

5. John is the stepbrother of Josh.

Write a python code to build a neural network using keras library. Your neural network should consist of following,

1. 3 Hidden layers having 15, 10, 11 neurons respectively.

2. Output layer must have atleast 3 neurons.

3. Train and test it on Mnist dataset.

4. Set epochs to 4 and learning rate to 0.001.

5. Report validation and testing accuracy.

Requirements: Prepare a python (.py) file for following steps and your code file must be in running form with output of the above mentioned steps.

..................

Build a simple 2D Convolutional neural network in python using Keras library. Each layer of CNN should have following:

1. Build Sequential layer in keras

. 2. Build 4 CNN layers having 12, 13, 20 neurons respectively.

3. Each layer of CNNN should be followed by MaxPooling layer. (pool size of 2,2 and padding=same)

4. Build three dense layers having 100 units in it and last layer must be an output layer with 10 units.

5. Train mnist dataset on this model. (use built in Cifar10 dataset from keras using from keras.datasets import mnist )

6. Use random epochs and learning rate.

Requirements: Prepare a python (.py) file for following steps and your code file must be in running form with output of the above mentioned steps.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Who should be involved?

Answered: 1 week ago