File:Noun phrase chunking with NLTK.svg

Uploaded by InverseHypercube
Upload date 2012-04-26T02:40:13Z
MIME type image/svg+xml
Dimensions 680 × 105 px
File size 48.1 KB

Summary

Description
English: Noun phrase chunking with NLTK. Created with the following Python code (see http://nltk.googlecode.com/svn/trunk/doc/book/ch07.html):
import nltk
sentence = nltk.tag.pos_tag('The quick brown fox jumped over the lazy dog'.split())
grammar = "NP: {<DT>?<JJ>*<NN>}"
cp = nltk.RegexpParser(grammar)
result = cp.parse(sentence)
result.draw()
Date
Source Own work
Author InverseHypercube

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

23 April 2012