1 / 8

What is a Literary Fingerprint?

What is a Literary Fingerprint?. http://www.physorg.com/news179651371.html http://iopscience.iop.org/1367-2630/11/12/123015 What are some of the issues in creating 'fingerprint' Where else do fingerprints occur? What is www.shazam.com What is www.tineye.com

pdecker
Télécharger la présentation

What is a Literary Fingerprint?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What is a Literary Fingerprint? • http://www.physorg.com/news179651371.html • http://iopscience.iop.org/1367-2630/11/12/123015 • What are some of the issues in creating 'fingerprint' • Where else do fingerprints occur? • What is www.shazam.com • What is www.tineye.com • How do we go from sets to frequency analysis? • Toward understanding Python dictionary data type

  2. How do you read words from file? • I exist solely as the CanisFamiliaris 'Bassett' • I ain't nothin' but a hound-dog

  3. Six of one and half-a-dozen … def wordsFromFile3(filename): file = open(filename) words = [] for line in file: for w in line.split(): words.append(w) file.close() return words • Change one line to get all words in lowercase equivalent • See CommonWords.py

  4. Six of one and half-a-dozen … def wordsFromFile2(filename): file = open(filename) words = [] for line in file: words.extend(line.split()) file.close() return words • Change one line to get all words in lowercase equivalent • See CommonWords.py

  5. Six of one and half-a-dozen … def wordsFromFile(filename): file = open(filename) words = file.read().split() file.close() return words • Change one line to get all words in lowercase equivalent • See CommonWords.py • Reasoning about common words

  6. How do we find 'common words' • Should common words be included in our literary fingerprint? • Where do authoritative sources originate? Determinable? • How can we experiment and compare common files? • Using Python sets! • Words in one set that aren't in another? • How do we do this in Python? • How do we find words in all sets? • Is intersection an associative operation? Do we care?

  7. Set Operations from pictures • http://en.wikipedia.org/wiki/File:Venn0111.svg

  8. APTs for practice: great minds … • Membercheck and SimpleWordGame • Set idioms • List comprehensions • Understandable code • Why do we study more than one way to …? • Expressive power • Neuronal excitement • Creating connections • We don't have to

More Related