SlideShare a Scribd company logo
Mallet Demo
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
“ A J A V A - B A S E D P A C K A G E F O R S T A T I S T I C A L
N A T U R A L L A N G U A G E P R O C E S S I N G ,
D O C U M E N T C L A S S I F I C A T I O N , C L U S T E R I N G ,
T O P I C M O D E L I N G , I N F O R M A T I O N
E X T R A C T I O N , A N D O T H E R M A C H I N E
L E A R N I N G A P P L I C A T I O N S T O T E X T . ”
What is Mallet?
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
W R I T T E N B Y A N D R E W M C C A L L U M E T A L . A T
U M A S S A M H E R S T
What is Mallet?
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
1 . D O W N L O A D M A L L E T
2 . P R E P A R E T E X T F O R I N P U T
3 . R U N M A L L E T
4 . M O D I F Y H Y P E R - P A R A M E T E R S
5 . A N A L Y Z E T O P I C S
How do you use mallet?
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
What is The Command Line?
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
1) Download Mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Mallet says: “Now run this command:
bin/mallet import-dir --input sample-data/web/* --
output web.mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Modifying the command:
bin/mallet import-dir --input sample-data/web/* --
output web.mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Modifying the command:
~/downloads/mallet-2.0.7/bin/mallet import-dir --
input sample-data/web/* --output web.mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Modifying the command:
~/downloads/mallet-2.0.7/bin/mallet import-dir --
input sample-data/web/* --output web.mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Modifying the command:
~/downloads/mallet-2.0.7/bin/mallet import-dir --
input ~/Desktop/Mallet-demo/Transcripts-
bulstrode
--output web.mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Modifying the command:
~/downloads/mallet-2.0.7/bin/mallet import-dir --
input ~/Desktop/Mallet-demo/Transcripts-
bulstrode --output web.mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Modifying the command:
~/downloads/mallet-2.0.7/bin/mallet import-dir --
input ~/Desktop/Mallet-demo/Transcripts-
bulstrode --output topic-input_bulstrode.mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Modifying the command:
~/downloads/mallet-2.0.7/bin/mallet import-dir --
input ~/Desktop/Mallet-demo/Transcripts-
bulstrode --output topic-input_bulstrode.mallet --
keep-sequence --remove-stopwords
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
2) Import Directory into Mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
3) Run Mallet
Mallet says, run the command:
bin/mallet train-topics --input topic-input.mallet
--num-topics 100 --output-state topic-state.gz
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
3) Run Mallet
Mallet says, run the command:
~/downloads/mallet-2.0.7/bin/mallet train-topics
--input topic-input_bulstrode.mallet --num-topics
100 --output-state topic-state.gz 2>
~/Desktop/Mallet-demo/bulstrode-100t.txt
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
3) Run Mallet
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
4) Modify Model
 --optimize-interval #: hyperparameter optimization
 --optimize-burn-in #: iterations before above
 --output-doc-topics doc.txt: outputs topic
composition of documents
 --output-topic-keys doc.txt: more complete data
 --inferencer-filename doc.txt: inferencer tool (?)
 --evaluator-filename doc.txt: how to get topic
proportions for new documents
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
5) Interpret a topic model
Background: Bulstrode Papers
 Sir Richard Bulstrode (1610-1711), English author, diplomat, soldier
 Papers were “communications made to him from this country [England?] in
the form of news-letters giving, almost daily, the most minute details of
everything going on at court and in the country.”
Research Questions, Bulstrode Papers:
 What important topics were discussed during Bulstrode’s life?
 What attitude was taken towards those topics?
 Can we identify patterns in topics or attitudes over time?
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
5) Interpret a topic model
0 10 house day bill ordered made sr lords mr till morning read resolved committee
debate brought comittee bee john morrow
1 10 duke lord earle french court king de yesterday morning towne france night
monday arrived tuesday present good returne dated
2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe
night wth
3 10 maty dutch holland matie men pleased great haveing persons fleet mr warr
severall wee sr hear states highness sea
4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord
great made french mr prince himselfe
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
5) Interpret a topic model
0 10 house day bill ordered made sr lords mr till morning read resolved committee
debate brought comittee bee john morrow
1 10 duke lord earle french court king de yesterday morning towne france night
monday arrived tuesday present good returne dated
2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe
night wth
3 10 maty dutch holland matie men pleased great haveing persons fleet mr warr
severall wee sr hear states highness sea
4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord
great made french mr prince himselfe
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
5) Interpret a topic model
0 10 house day bill ordered made sr lords mr till morning read resolved committee
debate brought comittee bee john morrow
1 10 duke lord earle french court king de yesterday morning towne france night
monday arrived tuesday present good returne dated
2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe
night wth
3 10 maty dutch holland matie men pleased great haveing persons fleet mr warr
severall wee sr hear states highness sea
4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord
great made french mr prince himselfe
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
5) Interpret a topic model
010 house day bill ordered made sr lords mr till
morning read resolved committee debate brought
comittee bee john morrow
1 10 duke lord earle french court king de yesterday morning towne france night
monday arrived tuesday present good returne dated
2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe
night wth
3 10 maty dutch holland matie men pleased great haveing persons fleet mr warr
severall wee sr hear states highness sea
4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord
great made french mr prince himselfe
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
5) Interpret a topic model
0 10 house day bill ordered made sr lords mr till morning read resolved committee
debate brought comittee bee john morrow
1 10 duke lord earle french court king de yesterday morning towne france night
monday arrived tuesday present good returne dated
2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe
night wth
310 maty dutch holland matie men pleased great
haveing persons fleet mr warr severall wee sr hear
states highness sea
4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord
great made french mr prince himselfe
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
Topic Three: War at Sea?
maty dutch holland
matie men pleased
great haveing
persons fleet mr warr
severall wee sr hear
states highness sea
--output-doc-topicsHannah Alpert -Abrams, University of Texas at Austin, Fall 2014
Topic Three: War at Sea?
maty dutch holland
matie men pleased
great haveing
persons fleet mr warr
severall wee sr hear
states highness sea
File 1672-04-12
' Thursday, 4th.--His Maty has
given orders that letters be
imediately sent to all the
Collonyes and Plantacons
abroad to give them notice of his
warr with Holland, and
therefore to comand them to
seize and secure all the effects of
the people in those places, and
to be carefull in securing the
countryes. His Maty has given
orders for the makeing
commissions for another
regiment to be raysed, under the
command of my Ld Power as
Collonell.
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
Topic Three: Third Anglo-Dutch War
maty dutch holland
matie men pleased
great haveing
persons fleet mr warr
severall wee sr hear
states highness sea
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
Topic Three: Third Anglo-Dutch War
maty dutch holland
matie men pleased
great haveing
persons fleet mr warr
severall wee sr hear
states highness sea
File 1672-04-12
' On Satturday last the commissions for
Prince Rupert's regiment were signed by
his Majesty, being in all 12 troops of
Dragoons; his Maty was also pleased to
signe commissions for another regiment of
Foot to be now raysed, under the comand
of Coll. Fitzgerald as Collonell, Mr Henry
Butler, Lt Colonell and Sr Edward
Carleton, Major.
' Monday, 1st.--Sr John Talbot's company
in his Matie's Guards is given to Captaine
Guilliames, and Captaine Downing's
company to Captaine Henry Williams; and
Capt Downing has Sr Charles Wheler's
company, also in the Guards.
' His Maty has been pleased to give two
comissions to the Duke of Yorke, one for
impowering him to issue out his warrants
to the Court of Admiralty to give sentence
against what prizes shall be taken, and the
other for impowering him to issue his
comissions to privateers to take and
destroy the King's enemyes.
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
Take-Aways
 The difficulties and rewards of working on the
command line.
 How to take a collection of topics and conduct an
analysis of those topics.
 How much human intervention is necessary to
“process” the text prior to modeling.
Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014

More Related Content

Recently uploaded

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
Kartik Tiwari
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 

Recently uploaded (20)

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Chapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdfChapter -12, Antibiotics (One Page Notes).pdf
Chapter -12, Antibiotics (One Page Notes).pdf
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Mallet presentation

  • 1. Mallet Demo Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 2. “ A J A V A - B A S E D P A C K A G E F O R S T A T I S T I C A L N A T U R A L L A N G U A G E P R O C E S S I N G , D O C U M E N T C L A S S I F I C A T I O N , C L U S T E R I N G , T O P I C M O D E L I N G , I N F O R M A T I O N E X T R A C T I O N , A N D O T H E R M A C H I N E L E A R N I N G A P P L I C A T I O N S T O T E X T . ” What is Mallet? Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 3. W R I T T E N B Y A N D R E W M C C A L L U M E T A L . A T U M A S S A M H E R S T What is Mallet? Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 4. 1 . D O W N L O A D M A L L E T 2 . P R E P A R E T E X T F O R I N P U T 3 . R U N M A L L E T 4 . M O D I F Y H Y P E R - P A R A M E T E R S 5 . A N A L Y Z E T O P I C S How do you use mallet? Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 5. What is The Command Line? Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 6. 1) Download Mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 7. 2) Import Directory into Mallet Mallet says: “Now run this command: bin/mallet import-dir --input sample-data/web/* -- output web.mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 8. 2) Import Directory into Mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 9. 2) Import Directory into Mallet Modifying the command: bin/mallet import-dir --input sample-data/web/* -- output web.mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 10. 2) Import Directory into Mallet Modifying the command: ~/downloads/mallet-2.0.7/bin/mallet import-dir -- input sample-data/web/* --output web.mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 11. 2) Import Directory into Mallet Modifying the command: ~/downloads/mallet-2.0.7/bin/mallet import-dir -- input sample-data/web/* --output web.mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 12. 2) Import Directory into Mallet Modifying the command: ~/downloads/mallet-2.0.7/bin/mallet import-dir -- input ~/Desktop/Mallet-demo/Transcripts- bulstrode --output web.mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 13. 2) Import Directory into Mallet Modifying the command: ~/downloads/mallet-2.0.7/bin/mallet import-dir -- input ~/Desktop/Mallet-demo/Transcripts- bulstrode --output web.mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 14. 2) Import Directory into Mallet Modifying the command: ~/downloads/mallet-2.0.7/bin/mallet import-dir -- input ~/Desktop/Mallet-demo/Transcripts- bulstrode --output topic-input_bulstrode.mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 15. 2) Import Directory into Mallet Modifying the command: ~/downloads/mallet-2.0.7/bin/mallet import-dir -- input ~/Desktop/Mallet-demo/Transcripts- bulstrode --output topic-input_bulstrode.mallet -- keep-sequence --remove-stopwords Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 16. 2) Import Directory into Mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 17. 3) Run Mallet Mallet says, run the command: bin/mallet train-topics --input topic-input.mallet --num-topics 100 --output-state topic-state.gz Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 18. 3) Run Mallet Mallet says, run the command: ~/downloads/mallet-2.0.7/bin/mallet train-topics --input topic-input_bulstrode.mallet --num-topics 100 --output-state topic-state.gz 2> ~/Desktop/Mallet-demo/bulstrode-100t.txt Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 19. 3) Run Mallet Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 20. 4) Modify Model  --optimize-interval #: hyperparameter optimization  --optimize-burn-in #: iterations before above  --output-doc-topics doc.txt: outputs topic composition of documents  --output-topic-keys doc.txt: more complete data  --inferencer-filename doc.txt: inferencer tool (?)  --evaluator-filename doc.txt: how to get topic proportions for new documents Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 21. 5) Interpret a topic model Background: Bulstrode Papers  Sir Richard Bulstrode (1610-1711), English author, diplomat, soldier  Papers were “communications made to him from this country [England?] in the form of news-letters giving, almost daily, the most minute details of everything going on at court and in the country.” Research Questions, Bulstrode Papers:  What important topics were discussed during Bulstrode’s life?  What attitude was taken towards those topics?  Can we identify patterns in topics or attitudes over time? Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 22. 5) Interpret a topic model 0 10 house day bill ordered made sr lords mr till morning read resolved committee debate brought comittee bee john morrow 1 10 duke lord earle french court king de yesterday morning towne france night monday arrived tuesday present good returne dated 2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe night wth 3 10 maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea 4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord great made french mr prince himselfe Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 23. 5) Interpret a topic model 0 10 house day bill ordered made sr lords mr till morning read resolved committee debate brought comittee bee john morrow 1 10 duke lord earle french court king de yesterday morning towne france night monday arrived tuesday present good returne dated 2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe night wth 3 10 maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea 4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord great made french mr prince himselfe Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 24. 5) Interpret a topic model 0 10 house day bill ordered made sr lords mr till morning read resolved committee debate brought comittee bee john morrow 1 10 duke lord earle french court king de yesterday morning towne france night monday arrived tuesday present good returne dated 2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe night wth 3 10 maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea 4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord great made french mr prince himselfe Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 25. 5) Interpret a topic model 010 house day bill ordered made sr lords mr till morning read resolved committee debate brought comittee bee john morrow 1 10 duke lord earle french court king de yesterday morning towne france night monday arrived tuesday present good returne dated 2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe night wth 3 10 maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea 4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord great made french mr prince himselfe Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 26. 5) Interpret a topic model 0 10 house day bill ordered made sr lords mr till morning read resolved committee debate brought comittee bee john morrow 1 10 duke lord earle french court king de yesterday morning towne france night monday arrived tuesday present good returne dated 2 10 ye yt wch king ld lds day order commons ym great agst st againe doe ma goe night wth 310 maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea 4 10 majestye hath sr councell soe late ambassador hee letters king majesty bee lord great made french mr prince himselfe Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 27. Topic Three: War at Sea? maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea --output-doc-topicsHannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 28. Topic Three: War at Sea? maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea File 1672-04-12 ' Thursday, 4th.--His Maty has given orders that letters be imediately sent to all the Collonyes and Plantacons abroad to give them notice of his warr with Holland, and therefore to comand them to seize and secure all the effects of the people in those places, and to be carefull in securing the countryes. His Maty has given orders for the makeing commissions for another regiment to be raysed, under the command of my Ld Power as Collonell. Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 29. Topic Three: Third Anglo-Dutch War maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 30. Topic Three: Third Anglo-Dutch War maty dutch holland matie men pleased great haveing persons fleet mr warr severall wee sr hear states highness sea File 1672-04-12 ' On Satturday last the commissions for Prince Rupert's regiment were signed by his Majesty, being in all 12 troops of Dragoons; his Maty was also pleased to signe commissions for another regiment of Foot to be now raysed, under the comand of Coll. Fitzgerald as Collonell, Mr Henry Butler, Lt Colonell and Sr Edward Carleton, Major. ' Monday, 1st.--Sr John Talbot's company in his Matie's Guards is given to Captaine Guilliames, and Captaine Downing's company to Captaine Henry Williams; and Capt Downing has Sr Charles Wheler's company, also in the Guards. ' His Maty has been pleased to give two comissions to the Duke of Yorke, one for impowering him to issue out his warrants to the Court of Admiralty to give sentence against what prizes shall be taken, and the other for impowering him to issue his comissions to privateers to take and destroy the King's enemyes. Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014
  • 31. Take-Aways  The difficulties and rewards of working on the command line.  How to take a collection of topics and conduct an analysis of those topics.  How much human intervention is necessary to “process” the text prior to modeling. Hannah Alpert -Abrams, University of Texas at Austin, Fall 2014