Skip to content

Scripts for the various Artificial Intelligence lab tasks

License

Notifications You must be signed in to change notification settings

vandit15/AI-lab-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-lab-codes

Scripts for the various Artificial Intelligence lab tasks

LAB-3

The task is to perform Part-of-Speech tagging by building a Hidden Markov Model. the build model is dumped into pickle a file which is retrieved during testing

Dataset consists of words on different lines of a sentence which in turn are separeted by a blank line.

After building the model, viterbi algorithm is applied to find the maximum probability tag for every word in the testing datset. The testing datset shoul consist of words that are in the model (smoothing hs not been performed on the model).

LAB-4

The task is to perform Linear and Logistic regression on regression and classification datasets respectively. The model once built is dumped into pickle file.

For linear regression, learing rate is taken to be 0.001 with 200000 iterations.

For Logistic regression , learning rate is taken to be 0.015 with 60000 iterations.

LAB-7

This lab is the application of artificial intelligence in the field of Natural Language Processing. The task is to convert the output from stanford parser(a probabilistic context free grammar,PCFG output) into a dependency tree. Further a naive method has been added for implementation of Paninian Grammar, it describes relation between verb and the objects(nouns/pronouns).

Script is written in python2.7. Specifically it uses anytree module to print the dependency tree. Module can be installed using the command pip install anytree.

About

Scripts for the various Artificial Intelligence lab tasks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages