Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!