introducing netmapper by example
play

Introducing NetMapper by Example Neal Altman na@cmu.edu Center - PDF document

CASOS Introducing NetMapper by Example Neal Altman na@cmu.edu Center for Computational Analysis of Social and Organizational Systems http://www.casos.cs.cmu.edu/ In This Presentation NetMapper Overview Creating Networks from text


  1. CASOS Introducing NetMapper by Example Neal Altman na@cmu.edu Center for Computational Analysis of Social and Organizational Systems http://www.casos.cs.cmu.edu/ In This Presentation • NetMapper Overview • Creating Networks from text • Analyzing Tweets for sentiment and CUES • “Follow-along” data available for download • Start NetMapper and ORA June 2020 1

  2. CASOS NetMapper • NetMapper is a tool that supports extracting concepts from texts and assigning sentiment at the concept level. • NetMapper’s principal input types: – Plain text documents. – Twitter tweets. • NetMapper processes text to identify concepts and their relationships. • NetMapper’s principal outputs – Networks – concepts and the links between them – Statistics about concepts • Sentiment Analysis • CUES • NetMapper is interoperable with ORA June 2020 3 The NetMapper Workflow User decisions Network analysis Text data Extract Relational & sources information Sentiment & relations Visualization data Machine Learning Simulation June 2020 4 2

  3. CASOS “User Decisions” • Principal user tasks: – Collecting and preparing text – Augment built-in universal translators with domain specific mappings • Define domain specific concepts and common concepts • List unwanted text/concepts. – Selecting options for text processing and output – Evaluating outputs (using ORA) • Illustrate with two operational examples – Creating networks from plaintext – Extracting sentiment from social media June 2020 5 NetMapper Example 1: Creating Networks from Text • Netmapper: – Load text – Set parameters – Create networks • ORA – Load networks – Visualize results June 2020 6 3

  4. CASOS Text Data for NetMapper • Text data is a series of files, containing content: – News stories – Journal articles – Blog posts… • Text should be “plain”: – Content only (no HTML tags, images, etc.) • Supported text encodings: – ANSI (US-ASCII) – UTF-8 – UTF-16 – UTF-32 June 2020 7 Why Use Text as Data for Network Analysis? • Information about socio-technical networks often resides in unstructured or semi-structured natural-language text data. What are our options? – Ignore it or store it (e.g., in a database and let it sit there) – Sampling – Qualitative, in-depth studies of subsets – Analyze separately or jointly • Networks that don’t exist anymore, e.g. former regimes, bankrupt companies. • Large-scale networks in which survey within network boundaries is prohibitively dangerous (e.g. Syria, Iraq) and/or expensive/time-consuming (e.g., Twitter feeds, news articles, courtroom proceedings, etc.). • Covert networks (e.g. white-collar crime syndicates, adversarial organization). • Networks that lack underlying real-world network or are the same as the data traces produced by or within them. WYSIWII (What-You-See-Is-What- It-Is) (Diesner & Carley, 2009). June 2020 4

  5. CASOS Network Creation • NetMapper identifies concepts (a word or works identifying an idea) • NetMapper prunes and modifies text: – Removes “noise” (e.g. stop words, punctuation, numbers). – Deletes specified words. – Translates synonyms and n-grams • NetMapper treats the remaining concepts as nodes in a meta-network. • NetMapper creates links between concepts which are sufficiently close: – Within a specified window of words/sentences of size N. – Within entire document. June 2020 9 There are TWO kinds of networks that you can extract from text using NetMapper June 2020 10 5

  6. CASOS Semantic Networks • Networks of words linked to each other based on co-occurrence. – Each link is concept-to-concept, e.g., in Shakespeare’s Romeo and Juliet • Romeo Montague  Juliet Capulet • Networks of words linked to the documents in which they appear. – Each link is concept-to-document, e.g., • Romeo  Shakespeare’s Romeo and Juliet • Juliet  Shakespeare’s Romeo and Juliet June 2020 11 Conventional Meta-Networks • Collections of multiple networks linking together agent (actors), events, organizations, and other node classes. – One-mode: agent x agent (links of agents to agents) – Two-mode: agent x organization (links of agents to orgs) June 2020 12 6

  7. CASOS Why The Distinction? • Sometimes a text is just a text, not a detailed map of specific relationships. • But, more often than not, texts contain entities that qualify into one of our node classes. • Some of ORA’s metrics are contingent on the existence of particular types of nodes and networks. – For example, Knowledge Negotiation measures the extent to which individuals (Agent nodes) need to negotiate with each other for information (Agent x Knowledge) to complete assignments (Agent x Task; Knowledge x Task). June 2020 13 Step-by-Step Example June 2020 14 7

  8. CASOS Delete List • Delete list – defines a set of concepts that should not be included in a network • Format is a one column list of concepts. • Two types of delete lists in NetMapper: – Universal Delete Lists – built in to NetMapper, applied to text by default (use can choose not to use them) – Domain Delete List – user provided list tailored to the input text • Two ways to treat deleted concepts during link creation: – Ignore deleted concepts for distance determination. – Count deleted concepts when determining distance. June 2020 15 Thesaurus • A thesaurus provides a translation of word(s) in the text to specified concept. • Two main uses: – Merge synonyms and alternates to a common concept, reducing complexity: • “Rob”, “Robert”, “D. Robert Smith” → “Robert_Smith” • “Amazon”, “Newegg”, “eBay” → “online_vendor” – Group a series of adjacent words ( n -grams) as one concept: • “Abraham Lincoln” → “Abraham_Lincoln” • “Torpedo boat destroyer” → “torpedo_boat_destroyer” • Two types of thesauri in NetMapper: – Universal – Domain June 2020 16 8

  9. CASOS The Four Required Fields • A NetMapper thesaurus is a tab-separated value (TSV) file containing a set of predefined columns: conceptFrom conceptTo metaOntology nodetype Ken Macdonald, director of public prosecutions Ken_Macdonald agent specific 2nd Battalion Royal Anglian Regiment 2nd_Battalion_Royal_Anglian_Regiment organization specific Iraqi Finance Minister Rafi al ‐ Isawi Rafi_al ‐ Isawi agent specific Islamic Human Rights Commission Islamic_Human_Rights_Commission organization specific Lord Goldsmith, attorneygeneral Peter_Goldsmith agent specific Bow Street Magistrates' Court Bow_Street_Magistrates'_Court organization specific Liverpool John Lennon Airport Liverpool_John_Lennon_Airport_UK location specific Chief Editor Tariq al ‐ Humayd Tariq_al ‐ Humayd agent specific Iraqi Deputy Sabah al ‐ Sa'idi Sabah_al ‐ Sa'idi agent specific Crown Prosecution Service's Crown_Prosecution_Service organization specific • The file layout is: – Header line with fixed header fields separated by tabs. – Encoding is UTF-8 (without BOM) – One line per concept mapping. – Sorted by conceptFrom field length. June 2020 17 The Four Required Fields • conceptFrom – the match text in the input files • conceptTo – the replacement concept (spaces replaced by underscores) • metaOntology – one of the standard ORA node classes (more later) • nodetype – note if the concept is general or explicit (allowed only for metaOntology types agent, organization, location and event): – generic - the concept applies to a class or group of things (e.g. “pilot”, “government”, “river”, “depression”). – specific – the concept applies to a particular instance (e.g. “Blériot”, “Thailand”, “Mississippi”, “The_Great_Depression”) – <blank> - other metaOntology types or unknown. June 2020 18 9

  10. CASOS Required and Optional Fields Required Optional Columns Columns 5. Category 1 19. Affect Mean 33. Equivocal 6. Category 2 20. Military Role 34. Connective 1. conceptFrom 7. Category 3 21. Political Role 35. NamedEntity 2. conceptTo 8. Country 22. Religious Role 36. Pronoun_Level 3. metaOntology 9. First Name 23. Abusive 37. Adverb 4. nodetype 10. Last Name 24. Exclusive 38. OtherUsage 11. Gender 25. PowerAnger 39. Inclusive 12. Suffix 26. PowerEncourage 13. Language 27. PowerFear 14. Acronym 28. PowerForbidden 15. Valence 29. PowerGreed 16. Evaluation 30. PowerLust 17. Potency 31. PowerSafety 18. Activity 32. Absolutist June 2020 19 MetaOntology (Node Classes) • NetMapper supports the standard ORA node classes: – Agent refers to single actors. – Organization refers to actors that consist a group of agents. – Knowledge describes cognitive capabilities and skills. – Resource refers to things that can be owned or acquired. – Belief identifies attitudes, positions or beliefs. – Event identifies occurrences or phenomena. – Task refers to actions than an actor can, or cannot take. – Location refers to places, real or conceptual. – Role is a deprecated identifier for position, function, or purpose. – Action is a deprecated synonym for Task. – Unknown is used when a nodeset is not otherwise classified. June 2020 20 10

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend