X hits on this document

Powerpoint document

Python for NLP and the Natural Language Toolkit - page 6 / 47

145 views

0 shares

0 downloads

0 comments

6 / 47

Modules and Packages from…import

The from…import command loads individual functions and objects from a module:

# Load the search function from the re module

>>> from re import search

Once an individual function or object is loaded with from…import, it can be used directly:

# Use the search method from the re module

>>> search (‘\w+’, str)

Document info
Document views145
Page views145
Page last viewedSun Dec 11 08:06:56 UTC 2016
Pages47
Paragraphs392
Words1978

Comments