Python NLP
Python NLP
Python NLP
Pre-requisites
1. Participants need to be expert level in at least one programming language
2. Participants should be fully conversant with development tools - either command line
or IDE
3. Participants need to have basic working knowledge of Python. Basics would be
covered as a very short refresher only.
4. Basic knowledge of English Language and grammar is expected (like parts of
speech, etc)
Lab requirements
1. 1:1 or 2:1 participant-machine ratio for hands-on and exercises
2. Local installation of Python (ActivePython 2.7+ community edition should work)
-or3. A Linux machine accessible to the participants laptops/desktops via putty (Python comes
pre-installed in all Linux distros)
Agenda
Python Introduction [1 hr]
The Python interpreter
Python Data Types
o int
o str
o list
o tuple
o Dictionaries
Built in operators, functions and methods
Data and type introspection basics
o type()
o dir()
Control structures
o for
VINSYS
Professional training course
Python NLP 4 Days Training Topics
o
o
while
if-else-elseif
Functions
o Creating functions
o Arguments
o passing functions around
Exercises to try above concepts
VINSYS
Professional training course
Python NLP 4 Days Training Topics
VINSYS
Professional training course
Python NLP 4 Days Training Topics
Segmentation
Formatting: From Lists to Strings
VINSYS
Professional training course
Python NLP 4 Days Training Topics
Concepts
o Content Selection
o Lexical selection
o Sentence Structure
Aggregation
Referring expressions
o Discourse Structure
o Function vs form
Architecture
o Discourse Planner
o Surface Realizer
o Other alternatives
AI planning
Blackboard architectures
Systemic Grammar
o Meta-functions
Interpersonal Meta-functions
Ideational Meta-functions
Textual Meta-functions
o System network
o Realization statements
o Mood
o Transitivity
o Theme
Discourse Planning
o Text Schemata
VINSYS
Professional training course
Python NLP 4 Days Training Topics
o
o
o
o
Functional programming
The concept of FP
Lambdas
List comprehensions
Generator expressions
Map, reduce, filter
Unit Testing
Concept of unit testing
PyUnit
unittest module
test fixture
TestCase class
FunctionTestCase class
The setUP() and tearDown() methods
TestSuite class
test runner and the run() method
TestResult
doctest module
interactive session output discovery
Automation with nose test modue
Other unit testing modules
Py.test
attest