X hits on this document

Powerpoint document

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

118 views

0 shares

0 downloads

0 comments

16 / 47

Text Locations

A text location @ [s:e] specifies a region of a text:

s is the start index

e is the end index

The text location @ [s:e]specifies  the text beginning at s, and including everything up to (but not including) the text at e.

This definition is consistent with Python slice.

Think of indices as appearing between elements:            I saw a man               1234

Shorthand notation when location width = 1.

Document info
Document views118
Page views118
Page last viewedMon Dec 05 16:49:24 UTC 2016
Pages47
Paragraphs392
Words1978

Comments