Problem Statement:
Many companies deal with the understanding of large amount text data in the documents. With the help of natural language processing one can break the down problem in to simple steps as shown below.
Display: Jupyter notebook
Language used: Python
Libraries used: nltk, re
Tasks accomplished:
1) Extracting addresses which are in various format from the given document
2) Tokenizing the text into sentences, words and then tagging with Name Entities. The process performed here is shown in the Figure 1
Note: This project is purely for the demonstration purpose and not to disclose any confidential data/procedures of any originazation
In [49]:
from IPython.display import Image
Image(filename='entity_extraction_process.png')
# Note: this image is taken from NLTK Book and requires citation
Out[49]:
In [50]:
# Importing NLTK Dependencies
import nltk, re
from nltk import word_tokenize, pos_tag, ne_chunk
from nltk.tokenize.punkt import PunktSentenceTokenizer
In [51]:
# using docx2txt libarary to avoid the encoding errors while reading the text in given word file
import docx2txt
raw_data = docx2txt.process('Contract_Template.docx')
In [112]:
paragraphs = [p for p in raw_data.split('\n') if p]
tokenizer = PunktSentenceTokenizer()
sentences = [tokenizer.tokenize(paragraph) for paragraph in paragraphs]
sentences[:5]
Out[112]:
[['Have Fun Enterprises'],
['Subsidory of Pesusich Co'],
['Burlington Textiles Corp of America'],
['Address:'],
['BroomfieldUSA80319CO1234 Main St Suite #400']]
In [137]:
# using python's regular expressions to extract the required address data
street_address = re.compile(u'\d{1,4} [\w\s]{1,20}(?:street|st|avenue|ave|road|rd|highway|hwy|square|sq|trail|trl|drive|dr|court|ct|park|parkway|pkwy|circle|cir|boulevard|blvd)\W?(?=\D|$)', re.IGNORECASE)
zip_code = re.compile(r'\b\d{5}(?:[-\s]\d{4})?\b')
proper_address = "[0-9]{1,5} .+, .+, [A-Z]{2} [0-9]{5}"
print ("Below are the street addresses found in the given document \n")
print (re.findall(street_address, raw_data))
print ("\nBelow are the zip codes found in the given document \n")
print (re.findall(zip_code, raw_data))
print ("\nBelow is the address found in the given document with PROPER format \n")
print (re.findall(proper_address, raw_data))
for i in range (len(sentences)):
if sentences[i][0] == 'Address:':
print ("\nBelow is the address found in the given document with IMPROPER format is: \n")
print (sentences[i+1][0])
Below are the street addresses found in the given document
['1234 Main St ', '390 Interlocken Blvd\n', '1895 Preston White Drive,']
Below are the zip codes found in the given document
['80021', '20191']
Below is the address found in the given document with PROPER format
['1895 Preston White Drive, Reston, VA 20191']
Below is the address found in the given document with IMPROPER format is:
BroomfieldUSA80319CO1234 Main St Suite #400
In [131]:
tokens = [nltk.word_tokenize(sent[0]) for sent in sentences]
tokens[:6] # View the first few tokens
Out[131]:
[['Have', 'Fun', 'Enterprises'],
['Subsidory', 'of', 'Pesusich', 'Co'],
['Burlington', 'Textiles', 'Corp', 'of', 'America'],
['Address', ':'],
['BroomfieldUSA80319CO1234', 'Main', 'St', 'Suite', '#', '400'],
['390', 'Interlocken', 'Blvd']]
In [132]:
tokens[0]
Out[132]:
['Have', 'Fun', 'Enterprises']
Parts of Speech Tagging
In [133]:
# Viewing the parts of speech tag for each token in the given text
pos_tags = [nltk.pos_tag(token) for token_list in tokens for token in token_list]
pos[:20] # View top few pos tags
Out[133]:
[('Have', 'NNP'),
('Fun', 'NNP'),
('Enterprises', 'NNP'),
('Subsidory', 'NNP'),
('of', 'IN'),
('Pesusich', 'NNP'),
('Co', 'NNP'),
('Burlington', 'NNP'),
('Textiles', 'NNP'),
('Corp', 'NNP'),
('of', 'IN'),
('America', 'NNP'),
('Address', 'NNP'),
(':', ':'),
('BroomfieldUSA80319CO1234', 'NNP'),
('Main', 'NNP'),
('St', 'NNP'),
('Suite', 'NNP'),
('#', '#'),
('400', 'CD')]
NNP - Noun Proper Plural tag with respec to NLP library. The below command provides description of each POS tag followed by the nltk library
In [138]:
nltk.help.upenn_tagset()
$: dollar
$ -$ --$ A$ C$ HK$ M$ NZ$ S$ U.S.$ US$
'': closing quotation mark
' ''
(: opening parenthesis
( [ {
): closing parenthesis
) ] }
,: comma
,
--: dash
--
.: sentence terminator
. ! ?
:: colon or ellipsis
: ; ...
CC: conjunction, coordinating
& 'n and both but either et for less minus neither nor or plus so
therefore times v. versus vs. whether yet
CD: numeral, cardinal
mid-1890 nine-thirty forty-two one-tenth ten million 0.5 one forty-
seven 1987 twenty '79 zero two 78-degrees eighty-four IX '60s .025
fifteen 271,124 dozen quintillion DM2,000 ...
DT: determiner
all an another any both del each either every half la many much nary
neither no some such that the them these this those
EX: existential there
there
FW: foreign word
gemeinschaft hund ich jeux habeas Haementeria Herr K'ang-si vous
lutihaw alai je jour objets salutaris fille quibusdam pas trop Monte
terram fiche oui corporis ...
IN: preposition or conjunction, subordinating
astride among uppon whether out inside pro despite on by throughout
below within for towards near behind atop around if like until below
next into if beside ...
JJ: adjective or numeral, ordinal
third ill-mannered pre-war regrettable oiled calamitous first separable
ectoplasmic battery-powered participatory fourth still-to-be-named
multilingual multi-disciplinary ...
JJR: adjective, comparative
bleaker braver breezier briefer brighter brisker broader bumper busier
calmer cheaper choosier cleaner clearer closer colder commoner costlier
cozier creamier crunchier cuter ...
JJS: adjective, superlative
calmest cheapest choicest classiest cleanest clearest closest commonest
corniest costliest crassest creepiest crudest cutest darkest deadliest
dearest deepest densest dinkiest ...
LS: list item marker
A A. B B. C C. D E F First G H I J K One SP-44001 SP-44002 SP-44005
SP-44007 Second Third Three Two * a b c d first five four one six three
two
MD: modal auxiliary
can cannot could couldn't dare may might must need ought shall should
shouldn't will would
NN: noun, common, singular or mass
common-carrier cabbage knuckle-duster Casino afghan shed thermostat
investment slide humour falloff slick wind hyena override subhumanity
machinist ...
NNP: noun, proper, singular
Motown Venneboerger Czestochwa Ranzer Conchita Trumplane Christos
Oceanside Escobar Kreisler Sawyer Cougar Yvette Ervin ODI Darryl CTCA
Shannon A.K.C. Meltex Liverpool ...
NNPS: noun, proper, plural
Americans Americas Amharas Amityvilles Amusements Anarcho-Syndicalists
Andalusians Andes Andruses Angels Animals Anthony Antilles Antiques
Apache Apaches Apocrypha ...
NNS: noun, common, plural
undergraduates scotches bric-a-brac products bodyguards facets coasts
divestitures storehouses designs clubs fragrances averages
subjectivists apprehensions muses factory-jobs ...
PDT: pre-determiner
all both half many quite such sure this
POS: genitive marker
' 's
PRP: pronoun, personal
hers herself him himself hisself it itself me myself one oneself ours
ourselves ownself self she thee theirs them themselves they thou thy us
PRP$: pronoun, possessive
her his mine my our ours their thy your
RB: adverb
occasionally unabatingly maddeningly adventurously professedly
stirringly prominently technologically magisterially predominately
swiftly fiscally pitilessly ...
RBR: adverb, comparative
further gloomier grander graver greater grimmer harder harsher
healthier heavier higher however larger later leaner lengthier less-
perfectly lesser lonelier longer louder lower more ...
RBS: adverb, superlative
best biggest bluntest earliest farthest first furthest hardest
heartiest highest largest least less most nearest second tightest worst
RP: particle
aboard about across along apart around aside at away back before behind
by crop down ever fast for forth from go high i.e. in into just later
low more off on open out over per pie raising start teeth that through
under unto up up-pp upon whole with you
SYM: symbol
% & ' '' ''. ) ). * + ,. < = > @ A[fj] U.S U.S.S.R * ** ***
TO: "to" as preposition or infinitive marker
to
UH: interjection
Goodbye Goody Gosh Wow Jeepers Jee-sus Hubba Hey Kee-reist Oops amen
huh howdy uh dammit whammo shucks heck anyways whodunnit honey golly
man baby diddle hush sonuvabitch ...
VB: verb, base form
ask assemble assess assign assume atone attention avoid bake balkanize
bank begin behold believe bend benefit bevel beware bless boil bomb
boost brace break bring broil brush build ...
VBD: verb, past tense
dipped pleaded swiped regummed soaked tidied convened halted registered
cushioned exacted snubbed strode aimed adopted belied figgered
speculated wore appreciated contemplated ...
VBG: verb, present participle or gerund
telegraphing stirring focusing angering judging stalling lactating
hankerin' alleging veering capping approaching traveling besieging
encrypting interrupting erasing wincing ...
VBN: verb, past participle
multihulled dilapidated aerosolized chaired languished panelized used
experimented flourished imitated reunifed factored condensed sheared
unsettled primed dubbed desired ...
VBP: verb, present tense, not 3rd person singular
predominate wrap resort sue twist spill cure lengthen brush terminate
appear tend stray glisten obtain comprise detest tease attract
emphasize mold postpone sever return wag ...
VBZ: verb, present tense, 3rd person singular
bases reconstructs marks mixes displeases seals carps weaves snatches
slumps stretches authorizes smolders pictures emerges stockpiles
seduces fizzes uses bolsters slaps speaks pleads ...
WDT: WH-determiner
that what whatever which whichever
WP: WH-pronoun
that what whatever whatsoever which who whom whosoever
WP$: WH-pronoun, possessive
whose
WRB: Wh-adverb
how however whence whenever where whereby whereever wherein whereof why
``: opening quotation mark
` ``
The below command assigns name entity to each token in the given document. The commonly used type of named entities are ORGANIZATION, PERSON, LOCATION, DATE, TIME, MONEY, PERCENT, FACILITY, GPE
In [139]:
chunks = ne_chunk(pos)
print (chunks.__repr__())
Tree('S', [Tree('PERSON', [('Have', 'NNP')]), Tree('ORGANIZATION', [('Fun', 'NNP'), ('Enterprises', 'NNP')]), ('Subsidory', 'NNP'), ('of', 'IN'), Tree('PERSON', [('Pesusich', 'NNP'), ('Co', 'NNP'), ('Burlington', 'NNP'), ('Textiles', 'NNP'), ('Corp', 'NNP')]), ('of', 'IN'), Tree('GPE', [('America', 'NNP')]), ('Address', 'NNP'), (':', ':'), Tree('ORGANIZATION', [('BroomfieldUSA80319CO1234', 'NNP'), ('Main', 'NNP'), ('St', 'NNP'), ('Suite', 'NNP')]), ('#', '#'), ('400', 'CD'), ('390', 'CD'), Tree('ORGANIZATION', [('Interlocken', 'NNP'), ('Blvd', 'NNP')]), ('Suite', 'NNP'), ('300', 'CD'), Tree('GPE', [('Broomfield', 'NNP')]), (',', ','), ('CO', 'NNP'), ('80021', 'CD'), ('Contract', 'NNP'), ('Start', 'NNP'), ('Date', 'NNP'), (':', ':'), ('09/02/2017', 'CD'), ('This', 'DT'), ('is', 'VBZ'), ('my', 'PRP$'), ('really', 'RB'), ('long', 'JJ'), ('text', 'NN'), ('that', 'WDT'), ('should', 'MD'), ('appear', 'VB'), ('around', 'IN'), ('the', 'DT'), ('description', 'NN'), ('.', '.'), ('You', 'PRP'), ('know', 'VBP'), ('this', 'DT'), ('would', 'MD'), ("n't", 'RB'), ('be', 'VB'), ('that', 'IN'), ('bad', 'JJ'), ('if', 'IN'), ('it', 'PRP'), ('just', 'RB'), ('included', 'VBD'), ('some', 'DT'), ('actual', 'JJ'), ('context', 'NN'), ('that', 'WDT'), ('was', 'VBD'), ('useful', 'JJ'), ('enough', 'RB'), ('for', 'IN'), ('you', 'PRP'), ('to', 'TO'), ('want', 'VB'), ('to', 'TO'), ('read', 'VB'), ('it', 'PRP'), ('.', '.'), ('But', 'CC'), ('know', 'VBP'), ('instead', 'RB'), ('it', 'PRP'), ('will', 'MD'), ('use', 'VB'), ('grammatically', 'RB'), ('incorrect', 'JJ'), ('sentiments', 'NNS'), ('and', 'CC'), ('words', 'NNS'), ('that', 'WDT'), ('plop', 'VBP'), ('and', 'CC'), ('flerb', 'VBP'), ('all', 'DT'), ('about', 'IN'), ('with', 'IN'), ('much', 'JJ'), ('or', 'CC'), ('not', 'RB'), ('in', 'IN'), ('like', 'JJ'), ('such', 'JJ'), ('as', 'IN'), ('the', 'DT'), Tree('GPE', [('Irak', 'NNP')]), ('and', 'CC'), ('da', 'NN'), ('Sumallier', 'NNP'), ('which', 'WDT'), ('we', 'PRP'), ('all', 'DT'), ('know', 'VBP'), ('had', 'VBD'), ('at', 'IN'), ('one', 'CD'), ('time', 'NN'), ('books', 'NNS'), (',', ','), ('I', 'PRP'), ('was', 'VBD'), ('once', 'RB'), ('a', 'DT'), ('book', 'NN'), ('.', '.'), ('It', 'PRP'), ('all', 'DT'), ('started', 'VBD'), ('back', 'RP'), ('in', 'IN'), Tree('ORGANIZATION', [('WW3', 'NNP')]), ('when', 'WRB'), ('the', 'DT'), ('world', 'NN'), ('with', 'IN'), ('rife', 'NN'), ('with', 'IN'), ('mushrooms', 'NNS'), ('and', 'CC'), ('goats', 'NNS'), ('were', 'VBD'), ('marrying', 'VBG'), ('oranges', 'NNS'), ('.', '.'), ('I', 'PRP'), ('digress', 'VBP'), (',', ','), ('though', 'RB'), ('into', 'IN'), ('such', 'JJ'), ('as', 'IN'), ('I', 'PRP'), ('must', 'MD'), ('within', 'IN'), ('the', 'DT'), ('predicate', 'NN'), ('of', 'IN'), ('the', 'DT'), ('verb', 'NN'), ('.', '.'), Tree('PERSON', [('Dear', 'NNP'), ('Ryan', 'NNP'), ('Hitchler', 'NNP'), ('Dear', 'NNP')]), Tree('PERSON', [('Mr.', 'NNP'), ('Hitchler', 'NNP')]), ('Here', 'RB'), ('I', 'PRP'), ('am', 'VBP'), ('again', 'RB'), ('or', 'CC'), ('am', 'VBP'), ('i', 'VBN'), ('?', '.'), ('Terms', 'NNS'), ('&', 'CC'), Tree('ORGANIZATION', [('Conditions', 'NNP')]), ('<', 'NNP'), ('p', 'NN'), ('>', 'NNP'), Tree('PERSON', [('Source', 'NNP'), ('Code', 'NNP')]), ('form', 'NN'), ('under', 'IN'), ('this', 'DT'), ('Agreement', 'NNP'), ('are', 'VBP'), ('offered', 'VBN'), ('by', 'IN'), ('that', 'DT'), ('Contributor', 'NNP'), ('alone', 'RB'), ('and', 'CC'), ('not', 'RB'), ('by', 'IN'), ('any', 'DT'), ('Contributor', 'NNP'), ('under', 'IN'), ('this', 'DT'), ('license', 'NN'), ('.', '.'), ('If', 'IN'), ('you', 'PRP'), ('are', 'VBP'), ('carrying', 'VBG'), ('out', 'RP'), ('such', 'JJ'), ('distribution', 'NN'), (',', ','), ('become', 'VB'), ('invalid', 'JJ'), (',', ','), ('you', 'PRP'), ('must', 'MD'), ('include', 'VB'), ('a', 'DT'), ('copy', 'NN'), ('of', 'IN'), ('the', 'DT'), ('Program', 'NNP'), ('.', '.'), ('Each', 'DT'), ('Contributor', 'NN'), ('represents', 'VBZ'), ('that', 'IN'), ('to', 'TO'), ('its', 'PRP$'), ('structure', 'NN'), (',', ','), ('then', 'RB'), ('you', 'PRP'), ('must', 'MD'), ('make', 'VB'), ('the', 'DT'), ('derivative', 'JJ'), ('work', 'NN'), ('available', 'JJ'), ('to', 'TO'), ('others', 'NNS'), ('under', 'IN'), ('(', '('), ('i', 'NN'), (')', ')'), ('the', 'DT'), ('power', 'NN'), (',', ','), ('direct', 'JJ'), ('or', 'CC'), ('indirect', 'JJ'), (',', ','), ('to', 'TO'), ('cause', 'VB'), ('the', 'DT'), ('whole', 'NN'), ('of', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Original', 'NNP'), ('License', 'NNP')]), (',', ','), ('so', 'IN'), ('that', 'IN'), ('it', 'PRP'), ('is', 'VBZ'), ('impossible', 'JJ'), ('for', 'IN'), ('the', 'DT'), ('specific', 'JJ'), ('language', 'NN'), ('governing', 'VBG'), ('rights', 'NNS'), ('and', 'CC'), ('limitations', 'NNS'), ('under', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('License', 'NNP')]), ('for', 'IN'), ('that', 'DT'), Tree('PERSON', [('Covered', 'NNP'), ('Code', 'NNP')]), (',', ','), ('for', 'IN'), ('commercial', 'JJ'), ('or', 'CC'), ('non-commercial', 'JJ'), ('purposes', 'NNS'), (',', ','), ('provided', 'VBD'), ('that', 'IN'), ('you', 'PRP'), ('also', 'RB'), ('do', 'VBP'), ('the', 'DT'), ('following', 'NN'), (':', ':'), ('rename', 'VB'), ('any', 'DT'), ('non-standard', 'JJ'), ('features', 'NNS'), (',', ','), ('executables', 'NNS'), (',', ','), ('or', 'CC'), ('modules', 'NNS'), (',', ','), ('and', 'CC'), ('provided', 'VBD'), ('that', 'IN'), ('you', 'PRP'), ('distribute', 'VBP'), ('of', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Licensed', 'JJ'), ('Program', 'NNP')]), ('.', '.'), ('The', 'DT'), Tree('ORGANIZATION', [('Recipient', 'NNP')]), ('may', 'MD'), ('not', 'RB'), ('change', 'VB'), ('the', 'DT'), ('License', 'NN'), ('from', 'IN'), ('time', 'NN'), ('to', 'TO'), ('time', 'NN'), ('revised', 'VBN'), ('and/or', 'RB'), ('new', 'JJ'), ('versions', 'NNS'), ('(', '('), ('including', 'VBG'), ('revisions', 'NNS'), (')', ')'), ('of', 'IN'), ('this', 'DT'), ('software', 'NN'), ('without', 'IN'), ('specific', 'JJ'), ('prior', 'JJ'), ('written', 'VBN'), ('permission.', 'JJ'), ('<', 'NNP'), ('/p', 'NNP'), ('>', 'NNP'), ('<', 'NNP'), ('p', 'NN'), ('>', 'NN'), ('For', 'IN'), ('software', 'NN'), ('developers', 'NNS'), (':', ':'), ('conformance', 'NN'), ('testing', 'NN'), ('of', 'IN'), ('platforms', 'NNS'), ('and', 'CC'), ('middleware', 'NN'), ('greatly', 'RB'), ('reduces', 'VBZ'), ('the', 'DT'), ('cost', 'NN'), ('of', 'IN'), ('physically', 'RB'), ('performing', 'VBG'), ('source', 'NN'), ('distribution', 'NN'), (',', ','), ('a', 'DT'), ('complete', 'JJ'), ('machine-readable', 'JJ'), ('copy', 'NN'), ('of', 'IN'), ('this', 'DT'), ('license', 'NN'), ('.', '.'), ('This', 'DT'), ('license', 'NN'), ('establishes', 'VBZ'), ('the', 'DT'), ('terms', 'NNS'), ('and', 'CC'), ('conditions', 'NNS'), ('of', 'IN'), ('this', 'DT'), ('License', 'NNP'), ('published', 'VBN'), ('by', 'IN'), ('the', 'DT'), ('copyright', 'NN'), ('to', 'TO'), (',', ','), ('by', 'IN'), ('submitting', 'VBG'), ('it', 'PRP'), (',', ','), ('you', 'PRP'), ('agree', 'VBP'), ('to', 'TO'), ('indemnify', 'VB'), (',', ','), ('defend', 'VB'), ('and', 'CC'), ('indemnify', 'VB'), ('every', 'DT'), ('other', 'JJ'), ('Contributor', 'NNP'), ('to', 'TO'), ('such', 'JJ'), ('programs', 'NNS'), ('or', 'CC'), ('works', 'NNS'), ('based', 'VBN'), ('on', 'IN'), ('the', 'DT'), ('terms', 'NNS'), ('and', 'CC'), ('conditions', 'NNS'), ('of', 'IN'), ('merchantability', 'NN'), ('and', 'CC'), ('fitness', 'NN'), ('for', 'IN'), ('a', 'DT'), ('recipient', 'NN'), ('of', 'IN'), ('ordinary', 'JJ'), ('skill', 'NN'), ('to', 'TO'), ('be', 'VB'), ('of', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Covered', 'NNP'), ('Code', 'NNP')]), ('and', 'CC'), ('any', 'DT'), ('other', 'JJ'), ('entity', 'NN'), ('based', 'VBN'), ('on', 'IN'), ('the', 'DT'), ('basis', 'NN'), ('of', 'IN'), ('media', 'NNS'), ('cost', 'NN'), (',', ','), ('duplication', 'NN'), ('charges', 'NNS'), (',', ','), ('time', 'NN'), ('of', 'IN'), ('the', 'DT'), ('possibility', 'NN'), ('of', 'IN'), ('such', 'JJ'), ('Contributor', 'NNP'), (',', ','), ('if', 'IN'), ('any', 'DT'), (',', ','), ('to', 'TO'), ('sign', 'VB'), ('a', 'DT'), ('&', 'CC'), ('quot', 'NN'), (';', ':'), ('copyright', 'VBN'), ('disclaimer', 'NN'), ('&', 'CC'), ('quot', 'NN'), (';', ':'), ('for', 'IN'), ('the', 'DT'), ('entire', 'JJ'), ('agreement', 'NN'), ('between', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Corporation', 'NNP')]), ('for', 'IN'), Tree('ORGANIZATION', [('National', 'NNP'), ('Research', 'NNP'), ('Initiatives', 'NNP')]), (',', ','), ('having', 'VBG'), ('an', 'DT'), ('office', 'NN'), ('at', 'IN'), ('1895', 'CD'), ('Preston', 'NNP'), Tree('FACILITY', [('White', 'NNP'), ('Drive', 'NNP')]), (',', ','), Tree('GPE', [('Reston', 'NNP')]), (',', ','), ('VA', 'NNP'), ('20191', 'CD'), ('(', '('), ('&', 'CC'), ('quot', 'NN'), (';', ':'), Tree('ORGANIZATION', [('CNRI', 'NNP')]), ('&', 'CC'), ('quot', 'NNP'), (';', ':'), (')', ')'), (',', ','), ('and', 'CC'), ('the', 'DT'), ('output', 'NN'), ('from', 'IN'), ('the', 'DT'), ('substance', 'NN'), ('or', 'CC'), ('structure', 'NN'), ('of', 'IN'), ('the', 'DT'), ('changes', 'NNS'), ('made', 'VBN'), ('to', 'TO'), ('create', 'VB'), ('that', 'DT'), Tree('PERSON', [('Covered', 'NNP'), ('Code', 'NNP')]), ('governed', 'VBN'), ('by', 'IN'), ('this', 'DT'), ('License', 'NNP'), ('.', '.'), Tree('PERSON', [('Licensor', 'NNP')]), ('and', 'CC'), ('every', 'DT'), ('Contributor', 'NNP'), ('harmless', 'NN'), ('for', 'IN'), ('any', 'DT'), ('text', 'NN'), ('you', 'PRP'), ('hold', 'VBP'), ('the', 'DT'), ('copyright', 'NN'), ('and', 'CC'), ('other', 'JJ'), ('legal', 'JJ'), ('actions', 'NNS'), ('brought', 'VBN'), ('by', 'IN'), ('a', 'DT'), ('version', 'NN'), ('number', 'NN'), ('of', 'IN'), ('this', 'DT'), ('Agreement', 'NNP'), ('intended', 'VBD'), ('to', 'TO'), ('give', 'VB'), ('away', 'RP'), ('the', 'DT'), Tree('ORGANIZATION', [('Licensed', 'JJ'), ('Program', 'NNP')]), ('.', '.'), ('The', 'DT'), Tree('ORGANIZATION', [('Recipient', 'NNP')]), ('may', 'MD'), ('reproduce', 'VB'), ('and', 'CC'), ('distribute', 'VB'), ('any', 'DT'), ('executable', 'JJ'), ('or', 'CC'), ('other', 'JJ'), Tree('ORGANIZATION', [('Digital', 'NNP')]), ('Content', 'NNP'), ('as', 'IN'), ('an', 'DT'), ('executable', 'JJ'), ('program', 'NN'), ('.', '.'), Tree('PERSON', [('Code', 'NNP')]), ('&', 'CC'), ('quot', 'NN'), (';', ':'), ('are', 'VBP'), ('defined', 'VBN'), ('in', 'IN'), ('and', 'CC'), ('to', 'TO'), ('the', 'DT'), ('risks', 'NNS'), ('and', 'CC'), ('costs', 'NNS'), ('of', 'IN'), ('program', 'NN'), ('errors', 'NNS'), (',', ','), ('compliance', 'NN'), ('with', 'IN'), ('applicable', 'JJ'), ('laws', 'NNS'), (',', ','), ('damage', 'NN'), ('to', 'TO'), ('or', 'CC'), ('deletions', 'NNS'), ('from', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Contributor', 'NNP'), ('Version', 'NNP')]), ('(', '('), ('or', 'CC'), ('portions', 'NNS'), ('thereof', 'NNS'), (')', ')'), ('with', 'IN'), ('or', 'CC'), ('without', 'IN'), ('fee', 'NN'), ('is', 'VBZ'), ('hereby', 'RB'), ('granted', 'VBN'), (',', ','), ('free', 'JJ'), ('of', 'IN'), ('charge', 'NN'), (',', ','), ('to', 'TO'), ('any', 'DT'), ('Modifications', 'NNS'), ('made', 'VBN'), ('by', 'IN'), ('that', 'DT'), ('Participant.', 'NNP'), ('<', 'NNP'), ('/p', 'NNP'), ('>', 'NNP'), ('<', 'NNP'), ('p', 'NN'), ('>', 'NN'), ('To', 'TO'), ('make', 'VB'), ('sure', 'JJ'), ('the', 'DT'), ('requirements', 'NNS'), ('of', 'IN'), ('this', 'DT'), ('license', 'NN'), ('directly', 'RB'), ('with', 'IN'), ('the', 'DT'), Tree('GPE', [('Work', 'NNP')]), ('(', '('), ('and', 'CC'), ('each', 'DT'), ('Contributor', 'NNP'), ('retains', 'VBZ'), ('all', 'DT'), ('rights', 'NNS'), (',', ','), ('title', 'NN'), ('and', 'CC'), ('interest', 'NN'), ('in', 'IN'), ('and', 'CC'), ('to', 'TO'), ('the', 'DT'), ('same', 'JJ'), ('place', 'NN'), ('counts', 'NNS'), ('as', 'IN'), ('distribution', 'NN'), ('of', 'IN'), ('derivative', 'JJ'), ('or', 'CC'), ('collective', 'JJ'), ('works', 'NNS'), ('based', 'VBN'), ('on', 'IN'), ('the', 'DT'), ('Program', 'NNP'), (')', ')'), (',', ','), ('the', 'DT'), ('recipient', 'NN'), ('automatically', 'RB'), ('receives', 'VBZ'), ('a', 'DT'), ('copy', 'NN'), ('of', 'IN'), ('the', 'DT'), ('circumstances', 'NNS'), ('described', 'VBN'), ('in', 'IN'), ('Section', 'NN'), ('4', 'CD'), ('(', '('), ('a', 'DT'), (')', ')'), ('below', 'IN'), (',', ','), ('each', 'DT'), ('person', 'NN'), ('or', 'CC'), ('persons', 'NNS'), ('nominated', 'VBN'), ('as', 'IN'), ('such', 'JJ'), ('terms', 'NNS'), ('are', 'VBP'), ('not', 'RB'), ('intended', 'VBN'), ('to', 'TO'), ('facilitate', 'VB'), ('the', 'DT'), ('commercial', 'JJ'), ('use', 'NN'), ('of', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('License', 'NNP')]), ('published', 'VBN'), ('by', 'IN'), Tree('PERSON', [('Apple', 'NNP')]), ('.', '.'), ('No', 'DT'), ('one', 'NN'), ('other', 'JJ'), ('than', 'IN'), ('You', 'PRP'), (';', ':'), ('and/or', 'VB'), ('(', '('), ('b', 'NN'), (')', ')'), ('to', 'TO'), ('use', 'VB'), ('such', 'JJ'), ('covered', 'JJ'), ('code', 'NN'), ('under', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Creative', 'JJ'), ('Commons', 'NNP')]), ('Attribution-Share-Alike', 'NNP'), ('License', 'NNP'), ('3.0', 'CD'), ('or', 'CC'), ('later', 'RB'), ('.', '.'), ('Indicate', 'NNP'), ('changes', 'NNS'), (':', ':'), ('If', 'IN'), ('you', 'PRP'), ('institute', 'VBP'), ('patent', 'JJ'), ('litigation', 'NN'), ('against', 'IN'), ('a', 'DT'), ('Contributor', 'NNP'), ('(', '('), Tree('ORGANIZATION', [('Licensor', 'NNP')]), ('or', 'CC'), ('Contributor', 'NNP'), ('in', 'IN'), ('writing', 'VBG'), ('(', '('), ('i', 'NN'), (')', ')'), ('to', 'TO'), ('pay', 'VB'), ('any', 'DT'), ('damages', 'NNS'), ('as', 'IN'), ('a', 'DT'), ('result', 'NN'), ('of', 'IN'), ('a', 'DT'), ('program', 'NN'), ('name', 'NN'), (',', ','), ('font', 'JJ'), ('name', 'NN'), ('or', 'CC'), ('file', 'NN'), ('name', 'NN'), ('of', 'IN'), ('the', 'DT'), ('outstanding', 'JJ'), ('shares', 'NNS'), (',', ','), ('or', 'CC'), ('(', '('), ('iii', 'NN'), (')', ')'), ('beneficial', 'JJ'), ('ownership', 'NN'), ('of', 'IN'), ('such', 'JJ'), ('Contributor', 'NNP'), (',', ','), ('if', 'IN'), ('any', 'DT'), (',', ','), ('must', 'MD'), ('include', 'VB'), ('the', 'DT'), Tree('ORGANIZATION', [('Package', 'NNP')]), (',', ','), ('in', 'IN'), ('accordance', 'NN'), ('with', 'IN'), ('each', 'DT'), ('of', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Covered', 'NNP'), ('Code', 'NNP')]), ('and', 'CC'), ('use', 'NN'), (',', ','), ('reproduce', 'NN'), (',', ','), ('modify', 'NN'), (',', ','), ('display', 'NN'), (',', ','), ('perform', 'NN'), (',', ','), ('internally', 'RB'), ('distribute', 'VB'), ('within', 'IN'), ('Your', 'NNP'), ('organization', 'NN'), (',', ','), ('and', 'CC'), Tree('PERSON', [('Externally', 'NNP'), ('Deploy', 'NNP')]), ('Your', 'NNP'), ('Modifications', 'NNP'), (',', ','), ('taken', 'VBN'), ('alone', 'RB'), ('or', 'CC'), ('in', 'IN'), ('any', 'DT'), ('derivative', 'JJ'), ('version', 'NN'), (',', ','), ('provided', 'VBN'), (',', ','), ('however', 'RB'), (',', ','), ('that', 'IN'), Tree('ORGANIZATION', [('CNRIs', 'NNP'), ('License', 'NNP'), ('Agreement', 'NNP')]), (',', ','), Tree('PERSON', [('Licensee', 'NNP')]), ('may', 'MD'), ('substitute', 'VB'), ('the', 'DT'), ('following', 'JJ'), ('disclaimer.', 'NN'), ('<', 'NNP'), ('/p', 'NNP'), ('>', 'NNP'), ('<', 'NNP'), ('p', 'NN'), ('>', 'NNP'), ('Redistributions', 'NNP'), ('in', 'IN'), ('binary', 'JJ'), ('form', 'NN'), ('and', 'CC'), ('its', 'PRP$'), ('documentation', 'NN'), ('for', 'IN'), ('any', 'DT'), ('distribution', 'NN'), ('of', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Compiled', 'NNP'), ('Work', 'NNP')]), ('directly', 'RB'), ('from', 'IN'), ('the', 'DT'), Tree('ORGANIZATION', [('Work', 'NNP')]), ('.', '.'), ('Grant', 'NNP'), ('of', 'IN'), Tree('ORGANIZATION', [('License', 'NNP')]), ('From', 'NNP'), ('Licensor', 'NNP'), ('.', '.'), Tree('PERSON', [('Licensor', 'NNP')]), ('hereby', 'NN'), ('grants', 'NNS'), ('to', 'TO'), ('You', 'PRP'), ('by', 'IN'), ('such', 'JJ'), ('Respondent', 'NNP'), ('to', 'TO'), ('you', 'PRP'), ('under', 'IN'), ('Sections', 'NNS'), ('2.1', 'CD'), ('and', 'CC'), ('2.2', 'CD'), ('above', 'IN'), ('.', '.'), Tree('PERSON', [('Larger', 'NNP'), ('Works', 'NNP')]), ('.', '.'), ('You', 'PRP'), ('may', 'MD'), ('choose', 'VB'), ('to', 'TO'), ('use', 'VB'), ('the', 'DT'), Tree('ORGANIZATION', [('Licensed', 'JJ'), ('Program', 'NNP')]), (',', ','), ('or', 'CC'), ('any', 'DT'), ('Contributor.', 'NNP'), ('<', 'NNP'), ('br', 'NN'), ('>', 'NNP'), ('<', 'NNP'), ('/p', 'NNP'), ('>', 'NNP'), ('We', 'PRP'), ('appreciate', 'VBP'), ('you', 'PRP'), ('!', '.')])
Content source: madhurilalitha/Python-Projects
Similar notebooks: