SlideShare une entreprise Scribd logo
1  sur  62
DMDH Winter 2014 Session #1:
Exploring Programming in the Digital
Humanities
Programming is complex
enough that just figuring out
what you want to do and
what sort of language you
need is work.
Thinking that you ought to be able
to do everything almost immediately
is a recipe for feeling terrible.
Being aware that it is
genuine work, and not just
work for newbies, matters.
Photo by MK Fautoyére, via Flickr
There will always be new
programs and platforms that
you will want to experiment
with.
Working with technology
means periodically starting
from scratch -- a bit like
working with a new time
period or culture; or figuring
out how to teach a new class.
What can programming
languages do?
Programming languages can...
They can also do all these
things in combination.
Example #1
•

find all the statements in quotes ("") from a
novel.

•
•

count how many words are in each statement

•

write all the statements from the novel in a text
file

put the statements in order from smallest
amount of words to largest
Example #2
•

allow a user to type in some information, i.e.,
"Benedict Cumberbatch"

•

compare “Benedict Cumberbatch” to a much
larger file

•
•

retrieve any data that matches the information
print the retrieved information on screen
Example #3

•
•

"read" two texts -- say, two plays by Seneca

•

print the words that they have in common on
screen

•

calculate what percentage of the words in each play
are shared

•

print that percentage onscreen

search for any words that the two plays have in
common
Example #4
• if the user is located in geographic location
Z, i.e., 45th and University, go to an online
address and retrieve some text

• print that text on the user’s tablet screen
• receive input from the user and respond
However...
•

In Example #1, the computer is focusing on things
that characters say. But what if you want to isolate
speeches from just one character?

•

In Example 2, how does the computer know how
much text to print? Will it just print "Benedict
Cumberbatch" 379 times, because that's how often
it appears in the larger file?
These are the areas of
programming where critical
thinking and humanities
skills become vital.
The Difference
• Humans are good at differentiating
between material in complex and
sophisticated ways.

• Computers are good at not differentiating
between material unless they’ve been
specifically instructed to do so.
Computers work with data.
You work with data, too -- but in most
cases, you'll have to make your data readable
by computer.
How to make your data
machine-readable

• Annotate it with markup language
• Organize it in patterns that the computer
can understand

• Add data that is not explicitly readable in
the current format (i.e.,
hardbound/softbound binding;
language:English; date of record creation)
Depending on the data you
have, and the way you
annotate or structure it,
different things become
possible.
Your goal is to make the data As
Simple As Possible -- but not so
simple that it stops being useful.
Depending on the data you
work with, the work of
structuring or annotating
becomes more challenging,
but also more useful.
The work of creating data is
social.
Many programming languages have
governing bodies that establish
standards for their use:
•the World Wide Web (W3C) Consortium
(http://www.w3.org/standards/)
•the TEI Technical Council
BREAK!
Data Examples
• Annotated (Markup Languages: HTML, TEI)
• Structured (MySQL)
• Combination (Semantic Web)
Markup: HTML
<i> This text is
italic.</i>

=

This text is italic.
Markup: HTML
<a href=“http://www.dmdh.org”>
This text</a> will take you to a webpage.
=
This text will take you to a webpage.
Markup: HTML
Anything can be data -- and markup languages
provide instructions for how computers should
treat that data.
Markup: HTML
HTML is used to format text on webpages.
<p> separates text into paragraphs.
<em> makes text bold (emphasized).
These are just a few of the HTML formatting instructions that
you can use.
HTML Syntax Rules
•Open and closed tags: <> and </>
nd
•Attributes (2 -level information)
defined using =“”
Markup languages are
popular in digital humanities
because lots of humanists
work with texts.
Without markup languages,
the things that a computer
can search for are limited.
Ctrl + F: any text in iambic
pentameter.
Markup: TEI

With markup, the
things you can search
for are only limited by
your interpretation.
Markup: TEI
TEI
(Text Encoding Initiative)
Poetry w/ TEI
<text xmlns="http://www.tei-c.org/ns/1.0" xml:id="d1">
<body xml:id="d2">
<div1 type="book" xml:id="d3">
<head>Songs of Innocence</head>
<pb n="4"/>
<div2 type="poem" xml:id="d4">
<head>Introduction</head>
<lg type="stanza">
<l>Piping down the valleys wild, </l>
<l>Piping songs of pleasant glee, </l>
<l>On a cloud I saw a child, </l>
<l>And he laughing said to me: </l>
</lg>
Grammar w/ TEI
<entry>
<form>
<orth>pamplemousse</orth>
</form>
<gramGrp>
<gram type="pos">noun</gram>
<gram type="gen">masculine</gram>
</gramGrp>
</entry>
TEI’s syntax rules are
identical to HTML’s -though your normal
browser can’t work with TEI
the way it works with
HTML.
TEI is meant to be a highly
social language -- meaning
that the committee who
maintains its standards want
it to be something that
anyone can use.
In order for TEI to
successfully encode texts, it
has to be adaptable to
individual projects.
Anything that you can isolate (and
put in brackets) can (theoretically)
be pulled out and displayed for a
reader.
TEI can be used to encode more than just text:
<div type="shot">
 
<view>BBC World symbol</view>
 
<sp>
  
<speaker>Voice Over</speaker>
  
<p>Monty Python's Flying Circus tonight comes to you live
    
from the Grillomat Snack Bar, Paignton.</p>
 </sp>
</div>
<div type="shot">
 
<view>Interior of a nasty snack bar. Customers around, preferably
   real people. Linkman sitting at one of the plastic tables.</view>
 <sp>
  
<speaker>Linkman</speaker>
 
 
<p>Hello to you live from the Grillomat Snack Bar.</p>
 
</sp>
</div>
Or, you could encode all
Stephenie Meyer’s Twilight
according to its emotional
register.
Whether you include or
exclude some aspect of the
text in your markup can be
very important from an
academic perspective.
The challenge of creating
good data is one reason that
collaboration is so
important to digital
scholarship.
Data Collaboration
• Avoid reinventing the wheel (has the

markup for this text already been done?)

• Consider the labor involved vs. the

outcome (and future use of the data you
create.)
Structured Data
Study Scenario #1
• You study urban espresso stands: their

hours, brands of coffee, whether or not
they sell pastries, and how far the espresso
stands are from major roadways.
Study Scenario #2
• You study female characters in novels

written between 1700 and 1850. Encoding a
whole novel just to study female characters
isn’t practical for you.
Both scenarios involve
aggregating information,
rather than encoding it.
Structured Data: Example #1
(MySQL)
ID

Name

Location

008

Java the Hut

009

Prufrock
Coffee

Hours

Coffee Brand

Pastries (Y/N)

Distance from
Street

56 Farringdon 7:00 a.m.-2:00
Road, London, p.m.
UK

Square Mile
Roasters

N

25 meters

18 Shoreditch
High Street

Monmouth

Y

10 meters

7:00 a.m. –
10:00 p.m.
Structured Data:
Example #2 (RDF)
How your data is (or can
be) structured will influence
the technology that you
(can) use to work with it.
Digital humanists see
creating machine-readable
data as valuable scholarship.
Examples
• Homer Multi-Text Project
• Modernist Versions Project
• Scalar (platform)
• Century Ireland
Exercise:
You Create the Data!
Your data
determines your
project.
Every project has
data.
Text objects, images, tags, geographical
coordinates, categories, records, creator
metadata, etc.
Even if you’re not planning to learn
any programming skills, you are still
working with data.
Next time:
Programming on the Whiteboard
February 1st, 9:30, CMU 202
•Cleaning data before you work with it!
•Identifying specific programming tasks
•How access affects your project idea
•Flash project development
•Homework: bring some data to work with.
Please take our quick eval survey!
http://tinyurl.com/dmdh14jan

Contenu connexe

Similaire à Demystifying Digital Humanities: Winter 2014 session #1

Feb.2016 Demystifying Digital Humanities - Workshop 2
Feb.2016 Demystifying Digital Humanities - Workshop 2Feb.2016 Demystifying Digital Humanities - Workshop 2
Feb.2016 Demystifying Digital Humanities - Workshop 2Paige Morgan
 
Html journal chris kweks (microbold)
Html journal   chris kweks (microbold)Html journal   chris kweks (microbold)
Html journal chris kweks (microbold)Chris Kwekowe
 
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchrohitcse52
 
Webof words
Webof wordsWebof words
Webof wordssteddyss
 
Html add
Html addHtml add
Html addlidanx
 
Semantic web, python, construction industry
Semantic web, python, construction industrySemantic web, python, construction industry
Semantic web, python, construction industryReinout van Rees
 
DataFirst approach to coding
DataFirst approach to codingDataFirst approach to coding
DataFirst approach to codingAto Mensah
 
Distance questions & homework year 7 & 8
Distance questions & homework year 7 & 8Distance questions & homework year 7 & 8
Distance questions & homework year 7 & 8Jimmy Edwards
 
What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?Syed Hassan Raza
 
EXPLORING NATURAL LANGUAGE PROCESSING (1).pptx
EXPLORING NATURAL LANGUAGE PROCESSING (1).pptxEXPLORING NATURAL LANGUAGE PROCESSING (1).pptx
EXPLORING NATURAL LANGUAGE PROCESSING (1).pptxAtulKumarUpadhyay4
 
Basic Fundamentals Concept of Programming.pptx
Basic Fundamentals Concept of Programming.pptxBasic Fundamentals Concept of Programming.pptx
Basic Fundamentals Concept of Programming.pptxMichaelAngeloFTocop
 
Oops And C++ Fundamentals
Oops And C++ FundamentalsOops And C++ Fundamentals
Oops And C++ FundamentalsSubhasis Nayak
 
Automate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPT
Automate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPTAutomate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPT
Automate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPTAnant Corporation
 
Beginners guide-to-coding-updated
Beginners guide-to-coding-updatedBeginners guide-to-coding-updated
Beginners guide-to-coding-updatedSaidLezzar
 
Grade 11-Q1_W3-PECS_AQS.pdf
Grade 11-Q1_W3-PECS_AQS.pdfGrade 11-Q1_W3-PECS_AQS.pdf
Grade 11-Q1_W3-PECS_AQS.pdfVictor Sinangote
 
Kamon Ayeva Antipatterns, Patterns, And Rules Of Thumb For Successful Plone...
Kamon Ayeva   Antipatterns, Patterns, And Rules Of Thumb For Successful Plone...Kamon Ayeva   Antipatterns, Patterns, And Rules Of Thumb For Successful Plone...
Kamon Ayeva Antipatterns, Patterns, And Rules Of Thumb For Successful Plone...Vincenzo Barone
 
Data-Oriented Programming: making data a first-class citizen
Data-Oriented Programming: making data a first-class citizenData-Oriented Programming: making data a first-class citizen
Data-Oriented Programming: making data a first-class citizenManning Publications
 
10 tips to save you time and frustration while programming
10 tips to save you time and frustration while programming10 tips to save you time and frustration while programming
10 tips to save you time and frustration while programmingHugo Shi
 
application of computr by deepanshu
application of computr by deepanshuapplication of computr by deepanshu
application of computr by deepanshuDeepu Bhandari
 

Similaire à Demystifying Digital Humanities: Winter 2014 session #1 (20)

Feb.2016 Demystifying Digital Humanities - Workshop 2
Feb.2016 Demystifying Digital Humanities - Workshop 2Feb.2016 Demystifying Digital Humanities - Workshop 2
Feb.2016 Demystifying Digital Humanities - Workshop 2
 
Html journal chris kweks (microbold)
Html journal   chris kweks (microbold)Html journal   chris kweks (microbold)
Html journal chris kweks (microbold)
 
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai searchChatGPT-and-Generative-AI-Landscape Working of generative ai search
ChatGPT-and-Generative-AI-Landscape Working of generative ai search
 
Webof words
Webof wordsWebof words
Webof words
 
Html add
Html addHtml add
Html add
 
Semantic web, python, construction industry
Semantic web, python, construction industrySemantic web, python, construction industry
Semantic web, python, construction industry
 
DataFirst approach to coding
DataFirst approach to codingDataFirst approach to coding
DataFirst approach to coding
 
Distance questions & homework year 7 & 8
Distance questions & homework year 7 & 8Distance questions & homework year 7 & 8
Distance questions & homework year 7 & 8
 
Html
HtmlHtml
Html
 
What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?What Is Coding And Why Should You Learn It?
What Is Coding And Why Should You Learn It?
 
EXPLORING NATURAL LANGUAGE PROCESSING (1).pptx
EXPLORING NATURAL LANGUAGE PROCESSING (1).pptxEXPLORING NATURAL LANGUAGE PROCESSING (1).pptx
EXPLORING NATURAL LANGUAGE PROCESSING (1).pptx
 
Basic Fundamentals Concept of Programming.pptx
Basic Fundamentals Concept of Programming.pptxBasic Fundamentals Concept of Programming.pptx
Basic Fundamentals Concept of Programming.pptx
 
Oops And C++ Fundamentals
Oops And C++ FundamentalsOops And C++ Fundamentals
Oops And C++ Fundamentals
 
Automate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPT
Automate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPTAutomate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPT
Automate your Job and Business with ChatGPT #3 - Fundamentals of LLM/GPT
 
Beginners guide-to-coding-updated
Beginners guide-to-coding-updatedBeginners guide-to-coding-updated
Beginners guide-to-coding-updated
 
Grade 11-Q1_W3-PECS_AQS.pdf
Grade 11-Q1_W3-PECS_AQS.pdfGrade 11-Q1_W3-PECS_AQS.pdf
Grade 11-Q1_W3-PECS_AQS.pdf
 
Kamon Ayeva Antipatterns, Patterns, And Rules Of Thumb For Successful Plone...
Kamon Ayeva   Antipatterns, Patterns, And Rules Of Thumb For Successful Plone...Kamon Ayeva   Antipatterns, Patterns, And Rules Of Thumb For Successful Plone...
Kamon Ayeva Antipatterns, Patterns, And Rules Of Thumb For Successful Plone...
 
Data-Oriented Programming: making data a first-class citizen
Data-Oriented Programming: making data a first-class citizenData-Oriented Programming: making data a first-class citizen
Data-Oriented Programming: making data a first-class citizen
 
10 tips to save you time and frustration while programming
10 tips to save you time and frustration while programming10 tips to save you time and frustration while programming
10 tips to save you time and frustration while programming
 
application of computr by deepanshu
application of computr by deepanshuapplication of computr by deepanshu
application of computr by deepanshu
 

Plus de Paige Morgan

Feb.2016 Demystifying Digital Humanities - Workshop 3
Feb.2016 Demystifying Digital Humanities - Workshop 3Feb.2016 Demystifying Digital Humanities - Workshop 3
Feb.2016 Demystifying Digital Humanities - Workshop 3Paige Morgan
 
Feb.2016 Demystifying Digital Humanities - Workshop 1
Feb.2016 Demystifying Digital Humanities - Workshop 1Feb.2016 Demystifying Digital Humanities - Workshop 1
Feb.2016 Demystifying Digital Humanities - Workshop 1Paige Morgan
 
Miami Demystifying DH session 1 slides-FINAL
Miami   Demystifying DH   session 1 slides-FINALMiami   Demystifying DH   session 1 slides-FINAL
Miami Demystifying DH session 1 slides-FINALPaige Morgan
 
DMDH HASTAC 2015 Presentation: Building and Sustaining DH Communities
DMDH HASTAC 2015 Presentation: Building and Sustaining DH Communities DMDH HASTAC 2015 Presentation: Building and Sustaining DH Communities
DMDH HASTAC 2015 Presentation: Building and Sustaining DH Communities Paige Morgan
 
Dmdh may 2015 - workshop 1
Dmdh   may 2015 - workshop 1Dmdh   may 2015 - workshop 1
Dmdh may 2015 - workshop 1Paige Morgan
 
Modular Digital Scholarship // for Seeding Digital Scholarship
Modular Digital Scholarship // for Seeding Digital ScholarshipModular Digital Scholarship // for Seeding Digital Scholarship
Modular Digital Scholarship // for Seeding Digital ScholarshipPaige Morgan
 
Demystifying Digital Scholarship Workshop 6 Slides
Demystifying Digital Scholarship Workshop 6 SlidesDemystifying Digital Scholarship Workshop 6 Slides
Demystifying Digital Scholarship Workshop 6 SlidesPaige Morgan
 
Demystifying Digital Scholarship Slides: Big Project, Small Project: Steps in...
Demystifying Digital Scholarship Slides: Big Project, Small Project: Steps in...Demystifying Digital Scholarship Slides: Big Project, Small Project: Steps in...
Demystifying Digital Scholarship Slides: Big Project, Small Project: Steps in...Paige Morgan
 
DMDS Winter Workshop 2 Slides
DMDS Winter Workshop 2 SlidesDMDS Winter Workshop 2 Slides
DMDS Winter Workshop 2 SlidesPaige Morgan
 
Demystifying Digital Scholarship: Using Social Media for Learning and Profess...
Demystifying Digital Scholarship: Using Social Media for Learning and Profess...Demystifying Digital Scholarship: Using Social Media for Learning and Profess...
Demystifying Digital Scholarship: Using Social Media for Learning and Profess...Paige Morgan
 
Demystifying Digital Scholarship: Session 1, McMaster University
Demystifying Digital Scholarship: Session 1, McMaster UniversityDemystifying Digital Scholarship: Session 1, McMaster University
Demystifying Digital Scholarship: Session 1, McMaster UniversityPaige Morgan
 
DMDH 2014: Workshop 5: Project Ideation and Development
DMDH 2014: Workshop 5: Project Ideation and DevelopmentDMDH 2014: Workshop 5: Project Ideation and Development
DMDH 2014: Workshop 5: Project Ideation and DevelopmentPaige Morgan
 
Demystifying Digital Humanities: Winter 2014 Workshop #2: Programming on the ...
Demystifying Digital Humanities: Winter 2014 Workshop #2: Programming on the ...Demystifying Digital Humanities: Winter 2014 Workshop #2: Programming on the ...
Demystifying Digital Humanities: Winter 2014 Workshop #2: Programming on the ...Paige Morgan
 
Dmdh session-2-2013-14
Dmdh session-2-2013-14Dmdh session-2-2013-14
Dmdh session-2-2013-14Paige Morgan
 
Dmdh session-1-2013-14
Dmdh session-1-2013-14Dmdh session-1-2013-14
Dmdh session-1-2013-14Paige Morgan
 
Dmdh workshop 5 slides
Dmdh   workshop 5 slidesDmdh   workshop 5 slides
Dmdh workshop 5 slidesPaige Morgan
 
Visible Prices: Archiving the Intersection Between Literature and Economics
Visible Prices: Archiving the Intersection Between Literature and EconomicsVisible Prices: Archiving the Intersection Between Literature and Economics
Visible Prices: Archiving the Intersection Between Literature and EconomicsPaige Morgan
 

Plus de Paige Morgan (18)

Feb.2016 Demystifying Digital Humanities - Workshop 3
Feb.2016 Demystifying Digital Humanities - Workshop 3Feb.2016 Demystifying Digital Humanities - Workshop 3
Feb.2016 Demystifying Digital Humanities - Workshop 3
 
Feb.2016 Demystifying Digital Humanities - Workshop 1
Feb.2016 Demystifying Digital Humanities - Workshop 1Feb.2016 Demystifying Digital Humanities - Workshop 1
Feb.2016 Demystifying Digital Humanities - Workshop 1
 
Miami Demystifying DH session 1 slides-FINAL
Miami   Demystifying DH   session 1 slides-FINALMiami   Demystifying DH   session 1 slides-FINAL
Miami Demystifying DH session 1 slides-FINAL
 
DMDH HASTAC 2015 Presentation: Building and Sustaining DH Communities
DMDH HASTAC 2015 Presentation: Building and Sustaining DH Communities DMDH HASTAC 2015 Presentation: Building and Sustaining DH Communities
DMDH HASTAC 2015 Presentation: Building and Sustaining DH Communities
 
Dmdh may 2015 - workshop 1
Dmdh   may 2015 - workshop 1Dmdh   may 2015 - workshop 1
Dmdh may 2015 - workshop 1
 
Modular Digital Scholarship // for Seeding Digital Scholarship
Modular Digital Scholarship // for Seeding Digital ScholarshipModular Digital Scholarship // for Seeding Digital Scholarship
Modular Digital Scholarship // for Seeding Digital Scholarship
 
Demystifying Digital Scholarship Workshop 6 Slides
Demystifying Digital Scholarship Workshop 6 SlidesDemystifying Digital Scholarship Workshop 6 Slides
Demystifying Digital Scholarship Workshop 6 Slides
 
Demystifying Digital Scholarship Slides: Big Project, Small Project: Steps in...
Demystifying Digital Scholarship Slides: Big Project, Small Project: Steps in...Demystifying Digital Scholarship Slides: Big Project, Small Project: Steps in...
Demystifying Digital Scholarship Slides: Big Project, Small Project: Steps in...
 
DMDS Winter Workshop 2 Slides
DMDS Winter Workshop 2 SlidesDMDS Winter Workshop 2 Slides
DMDS Winter Workshop 2 Slides
 
Demystifying Digital Scholarship: Using Social Media for Learning and Profess...
Demystifying Digital Scholarship: Using Social Media for Learning and Profess...Demystifying Digital Scholarship: Using Social Media for Learning and Profess...
Demystifying Digital Scholarship: Using Social Media for Learning and Profess...
 
Demystifying Digital Scholarship: Session 1, McMaster University
Demystifying Digital Scholarship: Session 1, McMaster UniversityDemystifying Digital Scholarship: Session 1, McMaster University
Demystifying Digital Scholarship: Session 1, McMaster University
 
DMDH 2014: Workshop 5: Project Ideation and Development
DMDH 2014: Workshop 5: Project Ideation and DevelopmentDMDH 2014: Workshop 5: Project Ideation and Development
DMDH 2014: Workshop 5: Project Ideation and Development
 
Demystifying Digital Humanities: Winter 2014 Workshop #2: Programming on the ...
Demystifying Digital Humanities: Winter 2014 Workshop #2: Programming on the ...Demystifying Digital Humanities: Winter 2014 Workshop #2: Programming on the ...
Demystifying Digital Humanities: Winter 2014 Workshop #2: Programming on the ...
 
Dmdh session-2-2013-14
Dmdh session-2-2013-14Dmdh session-2-2013-14
Dmdh session-2-2013-14
 
Dmdh session-1-2013-14
Dmdh session-1-2013-14Dmdh session-1-2013-14
Dmdh session-1-2013-14
 
Dmdh workshop #6
Dmdh workshop #6Dmdh workshop #6
Dmdh workshop #6
 
Dmdh workshop 5 slides
Dmdh   workshop 5 slidesDmdh   workshop 5 slides
Dmdh workshop 5 slides
 
Visible Prices: Archiving the Intersection Between Literature and Economics
Visible Prices: Archiving the Intersection Between Literature and EconomicsVisible Prices: Archiving the Intersection Between Literature and Economics
Visible Prices: Archiving the Intersection Between Literature and Economics
 

Dernier

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 

Dernier (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 

Demystifying Digital Humanities: Winter 2014 session #1

  • 1. DMDH Winter 2014 Session #1: Exploring Programming in the Digital Humanities
  • 2. Programming is complex enough that just figuring out what you want to do and what sort of language you need is work.
  • 3. Thinking that you ought to be able to do everything almost immediately is a recipe for feeling terrible.
  • 4. Being aware that it is genuine work, and not just work for newbies, matters.
  • 5. Photo by MK Fautoyére, via Flickr
  • 6. There will always be new programs and platforms that you will want to experiment with.
  • 7. Working with technology means periodically starting from scratch -- a bit like working with a new time period or culture; or figuring out how to teach a new class.
  • 10. They can also do all these things in combination.
  • 11. Example #1 • find all the statements in quotes ("") from a novel. • • count how many words are in each statement • write all the statements from the novel in a text file put the statements in order from smallest amount of words to largest
  • 12. Example #2 • allow a user to type in some information, i.e., "Benedict Cumberbatch" • compare “Benedict Cumberbatch” to a much larger file • • retrieve any data that matches the information print the retrieved information on screen
  • 13. Example #3 • • "read" two texts -- say, two plays by Seneca • print the words that they have in common on screen • calculate what percentage of the words in each play are shared • print that percentage onscreen search for any words that the two plays have in common
  • 14. Example #4 • if the user is located in geographic location Z, i.e., 45th and University, go to an online address and retrieve some text • print that text on the user’s tablet screen • receive input from the user and respond
  • 15. However... • In Example #1, the computer is focusing on things that characters say. But what if you want to isolate speeches from just one character? • In Example 2, how does the computer know how much text to print? Will it just print "Benedict Cumberbatch" 379 times, because that's how often it appears in the larger file?
  • 16. These are the areas of programming where critical thinking and humanities skills become vital.
  • 17. The Difference • Humans are good at differentiating between material in complex and sophisticated ways. • Computers are good at not differentiating between material unless they’ve been specifically instructed to do so.
  • 18. Computers work with data. You work with data, too -- but in most cases, you'll have to make your data readable by computer.
  • 19. How to make your data machine-readable • Annotate it with markup language • Organize it in patterns that the computer can understand • Add data that is not explicitly readable in the current format (i.e., hardbound/softbound binding; language:English; date of record creation)
  • 20. Depending on the data you have, and the way you annotate or structure it, different things become possible.
  • 21. Your goal is to make the data As Simple As Possible -- but not so simple that it stops being useful.
  • 22. Depending on the data you work with, the work of structuring or annotating becomes more challenging, but also more useful.
  • 23. The work of creating data is social.
  • 24. Many programming languages have governing bodies that establish standards for their use: •the World Wide Web (W3C) Consortium (http://www.w3.org/standards/) •the TEI Technical Council
  • 26. Data Examples • Annotated (Markup Languages: HTML, TEI) • Structured (MySQL) • Combination (Semantic Web)
  • 27. Markup: HTML <i> This text is italic.</i> = This text is italic.
  • 28. Markup: HTML <a href=“http://www.dmdh.org”> This text</a> will take you to a webpage. = This text will take you to a webpage.
  • 29. Markup: HTML Anything can be data -- and markup languages provide instructions for how computers should treat that data.
  • 30. Markup: HTML HTML is used to format text on webpages. <p> separates text into paragraphs. <em> makes text bold (emphasized). These are just a few of the HTML formatting instructions that you can use.
  • 31. HTML Syntax Rules •Open and closed tags: <> and </> nd •Attributes (2 -level information) defined using =“”
  • 32. Markup languages are popular in digital humanities because lots of humanists work with texts.
  • 33. Without markup languages, the things that a computer can search for are limited.
  • 34. Ctrl + F: any text in iambic pentameter.
  • 35. Markup: TEI With markup, the things you can search for are only limited by your interpretation.
  • 37. Poetry w/ TEI <text xmlns="http://www.tei-c.org/ns/1.0" xml:id="d1"> <body xml:id="d2"> <div1 type="book" xml:id="d3"> <head>Songs of Innocence</head> <pb n="4"/> <div2 type="poem" xml:id="d4"> <head>Introduction</head> <lg type="stanza"> <l>Piping down the valleys wild, </l> <l>Piping songs of pleasant glee, </l> <l>On a cloud I saw a child, </l> <l>And he laughing said to me: </l> </lg>
  • 38. Grammar w/ TEI <entry> <form> <orth>pamplemousse</orth> </form> <gramGrp> <gram type="pos">noun</gram> <gram type="gen">masculine</gram> </gramGrp> </entry>
  • 39. TEI’s syntax rules are identical to HTML’s -though your normal browser can’t work with TEI the way it works with HTML.
  • 40. TEI is meant to be a highly social language -- meaning that the committee who maintains its standards want it to be something that anyone can use.
  • 41. In order for TEI to successfully encode texts, it has to be adaptable to individual projects.
  • 42. Anything that you can isolate (and put in brackets) can (theoretically) be pulled out and displayed for a reader.
  • 43. TEI can be used to encode more than just text: <div type="shot">   <view>BBC World symbol</view>   <sp>    <speaker>Voice Over</speaker>    <p>Monty Python's Flying Circus tonight comes to you live      from the Grillomat Snack Bar, Paignton.</p>  </sp> </div> <div type="shot">   <view>Interior of a nasty snack bar. Customers around, preferably    real people. Linkman sitting at one of the plastic tables.</view>  <sp>    <speaker>Linkman</speaker>     <p>Hello to you live from the Grillomat Snack Bar.</p>   </sp> </div>
  • 44. Or, you could encode all Stephenie Meyer’s Twilight according to its emotional register.
  • 45. Whether you include or exclude some aspect of the text in your markup can be very important from an academic perspective.
  • 46. The challenge of creating good data is one reason that collaboration is so important to digital scholarship.
  • 47. Data Collaboration • Avoid reinventing the wheel (has the markup for this text already been done?) • Consider the labor involved vs. the outcome (and future use of the data you create.)
  • 49. Study Scenario #1 • You study urban espresso stands: their hours, brands of coffee, whether or not they sell pastries, and how far the espresso stands are from major roadways.
  • 50. Study Scenario #2 • You study female characters in novels written between 1700 and 1850. Encoding a whole novel just to study female characters isn’t practical for you.
  • 51. Both scenarios involve aggregating information, rather than encoding it.
  • 52. Structured Data: Example #1 (MySQL) ID Name Location 008 Java the Hut 009 Prufrock Coffee Hours Coffee Brand Pastries (Y/N) Distance from Street 56 Farringdon 7:00 a.m.-2:00 Road, London, p.m. UK Square Mile Roasters N 25 meters 18 Shoreditch High Street Monmouth Y 10 meters 7:00 a.m. – 10:00 p.m.
  • 53.
  • 55. How your data is (or can be) structured will influence the technology that you (can) use to work with it.
  • 56. Digital humanists see creating machine-readable data as valuable scholarship.
  • 57. Examples • Homer Multi-Text Project • Modernist Versions Project • Scalar (platform) • Century Ireland
  • 60. Every project has data. Text objects, images, tags, geographical coordinates, categories, records, creator metadata, etc.
  • 61. Even if you’re not planning to learn any programming skills, you are still working with data.
  • 62. Next time: Programming on the Whiteboard February 1st, 9:30, CMU 202 •Cleaning data before you work with it! •Identifying specific programming tasks •How access affects your project idea •Flash project development •Homework: bring some data to work with. Please take our quick eval survey! http://tinyurl.com/dmdh14jan