What is a Literary Fingerprint?

Slides:



Advertisements
Similar presentations
Def f(n): if (n == 0): return else: print(“*”) return f(n-1) f(3)
Advertisements

Recursion. Sum a list of numbers Iterative def sum(L): total = 0 for i in L: total += i return total Recursive def sum(L): if len(L) == 0: return 0 else:
Python Control of Flow.
 1 String and Data Processing. Sequential Processing Processing each element in a sequence for e in [1,2,3,4]: print e for c in “hello”: print c for.
Data Collections: Dictionaries CSC 161: The Art of Programming Prof. Henry Kautz 11/4/2009.
Errors And How to Handle Them. GIGO There is a saying in computer science: “Garbage in, garbage out.” Is this true, or is it just an excuse for bad programming?
Computing Science 1P Lecture 15: Friday 9 th February Simon Gay Department of Computing Science University of Glasgow 2006/07.
Compsci 06/101, Fall What's ahead in Compsci 6/101? l Software architecture and design, why Jotto has modules and how communication works  We.
9/14/2015BCHB Edwards Introduction to Python BCHB Lecture 4.
Compsci 06/101, Spring Compsci 6/101: PFTW, Feb 28-March 4 l Algorithms and Data Structures  Sets and how they are used in Python (data structure)
Classification of Organisms
Compsci 6/101, Spring WBFSB l Plan for this week  Get test back, review, look for problems/weaknesses  How to address these?  Assignments.
Compsci 101.2, Fall Plan for eleven-four l Thinking about APTs and test problems  How do you choose: list, string, set, dictionary  Experience?
Exceptions Copyright © Software Carpentry 2010 This work is licensed under the Creative Commons Attribution License See
Compsci 06/101, Spring This week in Compsci 6/101 l From sets to dictionaries  Incredibly powerful in solving problems  Power in Perl, Python,
CompSci 101 Introduction to Computer Science November 11, 2014 Prof. Rodger CompSci 101 Fall Review for exam.
Machine Language Computer languages cannot be directly interpreted by the computer – they are not in binary. All commands need to be translated into binary.
CompSci 101 Introduction to Computer Science March 29, 2016 Prof. Rodger.
Tool kit directions 1.Get a file folder. You may want to color code according to level or interest or reading group. 2.Have students fill out name puzzle.
Why don’t programmers have to program in machine code?
Advanced Python Idioms
Topic: Recursion – Part 2
CompSci 101 Introduction to Computer Science
Introduction to Python
Family. Family Family What is a family? There is no fixed recipe for a family; just a group of people who love and care for one another. Love and care.
Embedded Software Development with Python and the Raspberry Pi
Python Comprehension and Generators
Which picture is the odd one out? Why?
Visual Fractions Generally speaking, the progression used when teaching fractions starts with the use of manipulatives and other visual representations.
My Picture Dictionary Comments and Future Considerations: Sentences T
Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg
CSC 108H: Introduction to Computer Programming
CompSci 101 Introduction to Computer Science
Binary Files.
CompSci 101 Introduction to Computer Science
A look at alternative forms of communication
Concurrency Control via Validation
Getting to know your teacher
Classification of Organisms
Design Exercise UW CSE 160 Spring 2018.
CompSci 101 Introduction to Computer Science
Introducing the Ideas One of Six Traits:
Transforming Data (Python®)
Passing Parameters by value
Types, Truth, and Expressions (Part 2)
Kurzweil Kurzweil is an educational technology that supports reading, comprehension, writing, assignments, and tests. It is a multisensory approach to.

Control flow : if statements
CS 1111 Introduction to Programming Fall 2018
Family. Family Family What is a family? There is no fixed recipe for a family; just a group of people who love and care for one another. Love and care.

Stress.
Three Principles of successful Reading in your classroom
The fingerprints of elements
CSc 110, Spring 2018 Lecture 21: Line-Based File Input
Advanced Python Idioms
Python Comprehension and Generators
Advanced Python Idioms
Stream.
What connections can you make? What else do you notice?
Breakdown Who are you? Why should I want you in my class? Convince me!
CSC1018F: Functional Programming (Tutorial)
Aim: Do Now: What are rays and angles? Ans. M(4, -8) Ans. 10
Text Coding/Annotation
Helping Symmes/D’Arcy Partner #1 Recommend a great place for your partner to visit over Summer Break.
Distributive Property
Comparing & Ordering Fractions

Distributive Property
CS 1111 Introduction to Programming Spring 2019
Presentation transcript:

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

How do you read words from file? I exist solely as the Canis Familiaris 'Bassett' I ain't nothin' but a hound-dog

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

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

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

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?

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

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