Skip to content

Latest commit

 

History

History

proj-6-parser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

<- Back to course


CS50’s Introduction to Artificial Intelligence with Python

Parser

Background:

A common task in natural language processing is parsing, the process of determining the structure of a sentence. This is useful for a number of reasons: knowing the structure of a sentence can help a computer to better understand the meaning of the sentence, and it can also help the computer extract information out of a sentence. In particular, it’s often useful to extract noun phrases out of a sentence to get an understanding for what the sentence is about.

Getting Started:

Export this directory using SVN.

svn export https://github.com/GrandEchoWhiskey/harvard-cs50-ai-projects/trunk/proj-6-parser

Change directory

cd proj-6-parser

Install requirements

pip3 install -r requirements.txt

Now run the script

python parser.py [file.txt]