X hits on this document

Powerpoint document

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

185 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 views185
Page views185
Page last viewedSun Jan 22 21:25:40 UTC 2017
Pages47
Paragraphs392
Words1978

Comments