SlideShare ist ein Scribd-Unternehmen logo
1 von 31
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

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
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
 

Kürzlich hochgeladen (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
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
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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
 

Empfohlen

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 2024Neil 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 2024Albert 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 InsightsKurio // 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 2024Search 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 summarySpeakerHub
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit 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 managementMindGenius
 
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 WorkGetSmarter
 
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 PresentationErica Santiago
 

Empfohlen (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