This project implements a context-free grammar parser for English sentences. It's designed to analyze sentence structure, identify noun phrases, and demonstrate natural language processing capabilities. Part of CS50's Introduction to Artificial Intelligence with Python.
The parser performs three main functions:
- Preprocessing sentences into tokens
- Parsing sentences according to context-free grammar rules
- Extracting noun phrase chunks from parsed sentences
- Python
- NLTK (Natural Language Toolkit)
- Context-Free Grammar
- Sentence preprocessing and tokenization
- Implementation of context-free grammar rules
- Noun phrase chunk extraction
- Support for complex sentence structures
- Handling of various parts of speech including:
- Nouns
- Verbs
- Adjectives
- Adverbs
- Determiners
- Prepositions
- Conjunctions
- CS50 AI Harvard
- Natural Language Toolkit (NLTK) Documentation

