Last active
December 15, 2015 13:29
-
-
Save ccmcc/5267702 to your computer and use it in GitHub Desktop.
Python script to process data (included in outfinal.csv) about links between tags (in this case, tags in a comparative literature class blog), the book the tags were related to, and the topic of the blog post, in order to make a co-occurrence matrix showing which post topics shared the most tags. Part of a project working with the University of …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tag1 | tag2 | Book | Topic | |
---|---|---|---|---|
creator | created | Frankenstein | Creator vs Created | |
creator | creature | Frankenstein | Creator vs Created | |
created | creature | Frankenstein | Creator vs Created | |
feminism | philosophy | Frankenstein | Mary Wollstonecraft | |
feminism | creator | Frankenstein | Mary Wollstonecraft | |
philosophy | creator | Frankenstein | Mary Wollstonecraft | |
alchemy | inspiration | Frankenstein | Agrippa|Paracelsus|and Magnus | |
alchemy | philosophy | Frankenstein | Agrippa|Paracelsus|and Magnus | |
inspiration | philosophy | Frankenstein | Agrippa|Paracelsus|and Magnus | |
created | creator | Frankenstein | Paradise Lost | |
created | allusion | Frankenstein | Paradise Lost | |
creator | allusion | Frankenstein | Paradise Lost | |
romanticism | philosophy | Frankenstein | The Romantic Hero | |
romanticism | romantic hero | Frankenstein | The Romantic Hero | |
philosophy | romantic hero | Frankenstein | The Romantic Hero | |
greek | roman | Frankenstein | Plutarch's Lives | |
greek | morality | Frankenstein | Plutarch's Lives | |
greek | education | Frankenstein | Plutarch's Lives | |
roman | morality | Frankenstein | Plutarch's Lives | |
roman | education | Frankenstein | Plutarch's Lives | |
morality | education | Frankenstein | Plutarch's Lives | |
gothic | curse | Frankenstein | Gothic Horror and Frankenstein | |
gothic | horror | Frankenstein | Gothic Horror and Frankenstein | |
curse | horror | Frankenstein | Gothic Horror and Frankenstein | |
romantic hero | romanticism | Frankenstein | The Sorrows of Young Werther | |
romantic hero | obsession | Frankenstein | The Sorrows of Young Werther | |
romanticism | obsession | Frankenstein | The Sorrows of Young Werther | |
anarchism | philosophy | Frankenstein | William Godwin | |
allusion | nature | Frankenstein | Ch. 10 Poem: 'We rest...' | |
eternal punishment | greek | Frankenstein | Prometheus | |
eternal punishment | torment | Frankenstein | Prometheus | |
greek | torment | Frankenstein | Prometheus | |
hardship | author | Frankenstein | Mary Wollstonecraft Shelley | |
hardship | respected | Frankenstein | Mary Wollstonecraft Shelley | |
author | respected | Frankenstein | Mary Wollstonecraft Shelley | |
philosophy | alchemy | Frankenstein | Natural Philosophy | |
philosophy | modernity | Frankenstein | Natural Philosophy | |
alchemy | modernity | Frankenstein | Natural Philosophy | |
enlightenment | science | Frankenstein | Age of Enlightenment | |
enlightenment | philosophy | Frankenstein | Age of Enlightenment | |
science | philosophy | Frankenstein | Age of Enlightenment | |
obsession | pride | Frankenstein | Key Terms | |
obsession | thirst | Frankenstein | Key Terms | |
pride | thirst | Frankenstein | Key Terms | |
work | self-determination | Narrative...Douglass | Work | |
work | master | Narrative...Douglass | Work | |
self-determination | master | Narrative...Douglass | Work | |
blindness | ignorance | Narrative...Douglass | Blindness | |
blindness | sight | Narrative...Douglass | Blindness | |
ignorance | sight | Narrative...Douglass | Blindness | |
blood | thirst | Narrative...Douglass | Blood | |
blood | violence | Narrative...Douglass | Blood | |
thirst | violence | Narrative...Douglass | Blood | |
control | master | Narrative...Douglass | Control | |
religion | morality | Narrative...Douglass | Religion | |
religion | hypocrisy | Narrative...Douglass | Religion | |
morality | hypocrisy | Narrative...Douglass | Religion | |
progress | transformation | Narrative...Douglass | Progress | |
progress | knowledge | Narrative...Douglass | Progress | |
transformation | knowledge | Narrative...Douglass | Progress | |
literacy | illiteracy | Narrative...Douglass | Literacy | |
literacy | slavery | Narrative...Douglass | Literacy | |
literacy | control | Narrative...Douglass | Literacy | |
illiteracy | slavery | Narrative...Douglass | Literacy | |
illiteracy | control | Narrative...Douglass | Literacy | |
slavery | control | Narrative...Douglass | Literacy | |
humanity | inhumanity | Narrative...Douglass | Humanity-Inhumanity | |
humanity | master | Narrative...Douglass | Humanity-Inhumanity | |
inhumanity | master | Narrative...Douglass | Humanity-Inhumanity | |
knowledge | freedom | Narrative...Douglass | Knowledge | |
knowledge | literacy | Narrative...Douglass | Knowledge | |
freedom | literacy | Narrative...Douglass | Knowledge | |
determination | control | Narrative...Douglass | Grit | |
determination | corruption | Narrative...Douglass | Grit | |
control | corruption | Narrative...Douglass | Grit | |
barbarian | master | Narrative...Douglass | Barbarity | |
barbarian | religion | Narrative...Douglass | Barbarity | |
master | religion | Narrative...Douglass | Barbarity | |
contagion | conformity | Narrative...Douglass | Contagion | |
contagion | transformation | Narrative...Douglass | Contagion | |
conformity | transformation | Narrative...Douglass | Contagion | |
master | labor | Narrative...Douglass | The Master | |
master | philosophy | Narrative...Douglass | The Master | |
labor | philosophy | Narrative...Douglass | The Master | |
education | knowledge | Narrative...Douglass | Education | |
education | freedom | Narrative...Douglass | Education | |
knowledge | freedom | Narrative...Douglass | Education | |
religion | cannibalism | Moby Dick | Ramadan | |
religion | discipline | Moby Dick | Ramadan | |
cannibalism | discipline | Moby Dick | Ramadan | |
religion | pacifism | Moby Dick | Quakers | |
religion | exile | Moby Dick | Quakers | |
pacifism | exile | Moby Dick | Quakers | |
religion | barbarian | Moby Dick | Ahasuerus | |
religion | hierarchy | Moby Dick | Ahasuerus | |
barbarian | hierarchy | Moby Dick | Ahasuerus | |
history | death | Moby Dick | Pequot (Pequod) | |
uncertainty | ignorance | Moby Dick | Uncertainty | |
uncertainty | fear | Moby Dick | Uncertainty | |
uncertainty | excitement | Moby Dick | Uncertainty | |
ignorance | fear | Moby Dick | Uncertainty | |
ignorance | excitement | Moby Dick | Uncertainty | |
fear | excitement | Moby Dick | Uncertainty | |
allusion | religion | Moby Dick | Cervantes | |
allusion | determination | Moby Dick | Cervantes | |
allusion | hierarchy | Moby Dick | Cervantes | |
religion | determination | Moby Dick | Cervantes | |
religion | hierarchy | Moby Dick | Cervantes | |
determination | hierarchy | Moby Dick | Cervantes | |
religion | expectation | Moby Dick | Expectation | |
religion | foreshadow | Moby Dick | Expectation | |
expectation | foreshadow | Moby Dick | Expectation | |
presumption | prejudice | Moby Dick | Presumption | |
presumption | pride | Moby Dick | Presumption | |
presumption | knowledge | Moby Dick | Presumption | |
prejudice | pride | Moby Dick | Presumption | |
prejudice | knowledge | Moby Dick | Presumption | |
pride | knowledge | Moby Dick | Presumption | |
race | whiteness | Moby Dick | Race | |
race | identity | Moby Dick | Race | |
race | culture | Moby Dick | Race | |
whiteness | identity | Moby Dick | Race | |
whiteness | culture | Moby Dick | Race | |
identity | culture | Moby Dick | Race | |
shipmate | comrade | Moby Dick | Shipmate | |
shipmate | blood | Moby Dick | Shipmate | |
comrade | blood | Moby Dick | Shipmate | |
other | difference | Moby Dick | Othering | |
other | construction | Moby Dick | Othering | |
other | prejudice | Moby Dick | Othering | |
difference | construction | Moby Dick | Othering | |
difference | prejudice | Moby Dick | Othering | |
construction | prejudice | Moby Dick | Othering | |
ignorance | culture | Moby Dick | First Impressions | |
ignorance | prejudice | Moby Dick | First Impressions | |
ignorance | first impressions | Moby Dick | First Impressions | |
ignorance | foreshadow | Moby Dick | First Impressions | |
culture | prejudice | Moby Dick | First Impressions | |
culture | first impressions | Moby Dick | First Impressions | |
culture | foreshadow | Moby Dick | First Impressions | |
prejudice | first impressions | Moby Dick | First Impressions | |
prejudice | foreshadow | Moby Dick | First Impressions | |
first impressions | foreshadow | Moby Dick | First Impressions | |
sign | foreshadow | Moby Dick | Not Coleridge first threw that spell | |
sign | whiteness | Moby Dick | Not Coleridge first threw that spell | |
foreshadow | whiteness | Moby Dick | Not Coleridge first threw that spell | |
religion | punishment | Moby Dick | Babel | |
religion | foreshadow | Moby Dick | Babel | |
religion | expectation | Moby Dick | Babel | |
punishment | foreshadow | Moby Dick | Babel | |
punishment | expectation | Moby Dick | Babel | |
foreshadow | expectation | Moby Dick | Babel | |
allusion | narrative | Moby Dick | Procopius | |
allusion | created | Moby Dick | Procopius | |
narrative | created | Moby Dick | Procopius | |
allusion | mystery | Moby Dick | Queen Mab | |
allusion | reliability | Moby Dick | Queen Mab | |
allusion | reality | Moby Dick | Queen Mab | |
mystery | reliability | Moby Dick | Queen Mab | |
mystery | reality | Moby Dick | Queen Mab | |
reliability | reality | Moby Dick | Queen Mab | |
curse | glory | Moby Dick | The wild huntsman | |
curse | death | Moby Dick | The wild huntsman | |
curse | obsession | Moby Dick | The wild huntsman | |
glory | death | Moby Dick | The wild huntsman | |
glory | obsession | Moby Dick | The wild huntsman | |
death | obsession | Moby Dick | The wild huntsman | |
utilitarianism | skeleton | Moby Dick | Jeremy Bentham's Skeleton | |
utilitarianism | representation | Moby Dick | Jeremy Bentham's Skeleton | |
utilitarianism | understanding | Moby Dick | Jeremy Bentham's Skeleton | |
skeleton | representation | Moby Dick | Jeremy Bentham's Skeleton | |
skeleton | understanding | Moby Dick | Jeremy Bentham's Skeleton | |
representation | understanding | Moby Dick | Jeremy Bentham's Skeleton | |
conception | romantic hero | Moby Dick | Childe Harold | |
conception | sacred | Moby Dick | Childe Harold | |
conception | relic | Moby Dick | Childe Harold | |
romantic hero | sacred | Moby Dick | Childe Harold | |
romantic hero | relic | Moby Dick | Childe Harold | |
sacred | relic | Moby Dick | Childe Harold | |
whiteness | religion | Moby Dick | White Hoods of Ghent | |
whiteness | representation | Moby Dick | White Hoods of Ghent | |
whiteness | order | Moby Dick | White Hoods of Ghent | |
religion | representation | Moby Dick | White Hoods of Ghent | |
religion | order | Moby Dick | White Hoods of Ghent | |
representation | order | Moby Dick | White Hoods of Ghent | |
religion | representation | Moby Dick | Genesis|the angels...amours.' | |
religion | evil | Moby Dick | Genesis|the angels...amours.' | |
religion | construction | Moby Dick | Genesis|the angels...amours.' | |
representation | evil | Moby Dick | Genesis|the angels...amours.' | |
representation | construction | Moby Dick | Genesis|the angels...amours.' | |
evil | construction | Moby Dick | Genesis|the angels...amours.' | |
philosophy | empiricism | Moby Dick | Phaedo and Bowditch | |
philosophy | spiritual | Moby Dick | Phaedo and Bowditch | |
philosophy | contrast | Moby Dick | Phaedo and Bowditch | |
empiricism | spiritual | Moby Dick | Phaedo and Bowditch | |
empiricism | contrast | Moby Dick | Phaedo and Bowditch | |
spiritual | contrast | Moby Dick | Phaedo and Bowditch | |
shipwreck | fate | Moby Dick | The Essex Shipwreck & Owen Chase | |
shipwreck | personification | Moby Dick | The Essex Shipwreck & Owen Chase | |
fate | personification | Moby Dick | The Essex Shipwreck & Owen Chase | |
crown | royalty | Moby Dick | The Iron Crown of Lombardy | |
crown | power | Moby Dick | The Iron Crown of Lombardy | |
royalty | power | Moby Dick | The Iron Crown of Lombardy | |
history | author | Moby Dick | Obed Macy | |
history | legitimacy | Moby Dick | Obed Macy | |
author | legitimacy | Moby Dick | Obed Macy | |
perception | death | Moby Dick | St. Paul in Corinthians ... glory' | |
perception | resurrection | Moby Dick | St. Paul in Corinthians ... glory' | |
perception | appearance | Moby Dick | St. Paul in Corinthians ... glory' | |
death | resurrection | Moby Dick | St. Paul in Corinthians ... glory' | |
death | appearance | Moby Dick | St. Paul in Corinthians ... glory' | |
resurrection | appearance | Moby Dick | St. Paul in Corinthians ... glory' | |
satan | other | Moby Dick | Beelzebub | |
satan | foreshadow | Moby Dick | Beelzebub | |
satan | ignorance | Moby Dick | Beelzebub | |
other | foreshadow | Moby Dick | Beelzebub | |
other | ignorance | Moby Dick | Beelzebub | |
foreshadow | ignorance | Moby Dick | Beelzebub | |
blood | oppressor | Moby Dick | Judith and Holofernes | |
blood | murder | Moby Dick | Judith and Holofernes | |
blood | savagery | Moby Dick | Judith and Holofernes | |
oppressor | murder | Moby Dick | Judith and Holofernes | |
oppressor | savagery | Moby Dick | Judith and Holofernes | |
murder | savagery | Moby Dick | Judith and Holofernes | |
violence | power | Moby Dick | Heidelburgh Tun | |
violence | representation | Moby Dick | Heidelburgh Tun | |
power | representation | Moby Dick | Heidelburgh Tun | |
allusion | foreshadow | Moby Dick | Archangel Gabriel | |
allusion | religion | Moby Dick | Archangel Gabriel | |
allusion | curse | Moby Dick | Archangel Gabriel | |
foreshadow | religion | Moby Dick | Archangel Gabriel | |
foreshadow | curse | Moby Dick | Archangel Gabriel | |
religion | curse | Moby Dick | Archangel Gabriel | |
representation | knowledge | Moby Dick | Champollion | |
representation | obsession | Moby Dick | Champollion | |
representation | classification | Moby Dick | Champollion | |
knowledge | obsession | Moby Dick | Champollion | |
knowledge | classification | Moby Dick | Champollion | |
obsession | classification | Moby Dick | Champollion | |
appearance | knowledge | Moby Dick | Herschel's Great Telescope | |
appearance | perception | Moby Dick | Herschel's Great Telescope | |
appearance | necessity | Moby Dick | Herschel's Great Telescope | |
knowledge | perception | Moby Dick | Herschel's Great Telescope | |
knowledge | necessity | Moby Dick | Herschel's Great Telescope | |
perception | necessity | Moby Dick | Herschel's Great Telescope | |
vision | knowledge | Moby Dick | Euclid | |
vision | perception | Moby Dick | Euclid | |
vision | blindness | Moby Dick | Euclid | |
knowledge | perception | Moby Dick | Euclid | |
knowledge | blindness | Moby Dick | Euclid | |
perception | blindness | Moby Dick | Euclid | |
satire | inequality | Moby Dick | Temperance | |
satire | work | Moby Dick | Temperance | |
satire | attitude | Moby Dick | Temperance | |
inequality | work | Moby Dick | Temperance | |
inequality | attitude | Moby Dick | Temperance | |
work | attitude | Moby Dick | Temperance | |
philosophy | representation | Moby Dick | Stoic/Platonian | |
philosophy | personification | Moby Dick | Stoic/Platonian | |
philosophy | classification | Moby Dick | Stoic/Platonian | |
representation | personification | Moby Dick | Stoic/Platonian | |
representation | classification | Moby Dick | Stoic/Platonian | |
personification | classification | Moby Dick | Stoic/Platonian | |
ignorance | religion | Moby Dick | Jeroboam | |
ignorance | fanatic | Moby Dick | Jeroboam | |
ignorance | power | Moby Dick | Jeroboam | |
religion | fanatic | Moby Dick | Jeroboam | |
religion | power | Moby Dick | Jeroboam | |
fanatic | power | Moby Dick | Jeroboam | |
cannibalism | betrayal | Moby Dick | Et tu|Brute!' | |
cannibalism | violence | Moby Dick | Et tu|Brute!' | |
cannibalism | deception | Moby Dick | Et tu|Brute!' | |
betrayal | violence | Moby Dick | Et tu|Brute!' | |
betrayal | deception | Moby Dick | Et tu|Brute!' | |
violence | deception | Moby Dick | Et tu|Brute!' | |
representation | art | Moby Dick | Eckermann and Goethe | |
representation | body | Moby Dick | Eckermann and Goethe | |
art | body | Moby Dick | Eckermann and Goethe | |
power | religion | Moby Dick | Shadrach|Meshach and Abednego | |
power | soul | Moby Dick | Shadrach|Meshach and Abednego | |
religion | soul | Moby Dick | Shadrach|Meshach and Abednego | |
brand | interpretation | Moby Dick | Branded | |
brand | sign | Moby Dick | Branded | |
brand | other | Moby Dick | Branded | |
interpretation | sign | Moby Dick | Branded | |
interpretation | other | Moby Dick | Branded | |
sign | other | Moby Dick | Branded | |
expectation | ignorance | Moby Dick | Virginia's Natural Bridge | |
expectation | nature | Moby Dick | Virginia's Natural Bridge | |
ignorance | nature | Moby Dick | Virginia's Natural Bridge | |
punishment | recurrence | Moby Dick | Ixion | |
punishment | didactic | Moby Dick | Ixion | |
recurrence | didactic | Moby Dick | Ixion | |
obsession | contentment | Moby Dick | Rarmai | |
obsession | other | Moby Dick | Rarmai | |
obsession | expectation | Moby Dick | Rarmai | |
contentment | other | Moby Dick | Rarmai | |
contentment | expectation | Moby Dick | Rarmai | |
other | expectation | Moby Dick | Rarmai | |
interpretation | knowledge | Moby Dick | Explanation | |
interpretation | conception | Moby Dick | Explanation | |
interpretation | understanding | Moby Dick | Explanation | |
interpretation | explanation | Moby Dick | Explanation | |
knowledge | conception | Moby Dick | Explanation | |
knowledge | understanding | Moby Dick | Explanation | |
knowledge | explanation | Moby Dick | Explanation | |
conception | understanding | Moby Dick | Explanation | |
conception | explanation | Moby Dick | Explanation | |
understanding | explanation | Moby Dick | Explanation | |
brand | eternal punishment | Moby Dick | Burned | |
brand | consume | Moby Dick | Burned | |
brand | burned | Moby Dick | Burned | |
eternal punishment | consume | Moby Dick | Burned | |
eternal punishment | burned | Moby Dick | Burned | |
consume | burned | Moby Dick | Burned | |
obsession | punishment | Moby Dick | Ixion | |
obsession | madness | Moby Dick | Ixion | |
obsession | monomania | Moby Dick | Ixion | |
punishment | madness | Moby Dick | Ixion | |
punishment | monomania | Moby Dick | Ixion | |
madness | monomania | Moby Dick | Ixion | |
interpretation | classification | Moby Dick | Interpretation | |
interpretation | understanding | Moby Dick | Interpretation | |
interpretation | projection | Moby Dick | Interpretation | |
classification | understanding | Moby Dick | Interpretation | |
classification | projection | Moby Dick | Interpretation | |
understanding | projection | Moby Dick | Interpretation | |
power | death | Moby Dick | Samson | |
power | masculinity | Moby Dick | Samson | |
power | feminizing | Moby Dick | Samson | |
death | masculinity | Moby Dick | Samson | |
death | feminizing | Moby Dick | Samson | |
masculinity | feminizing | Moby Dick | Samson | |
determinism | denial | Moby Dick | The Three Fates | |
determinism | expectation | Moby Dick | The Three Fates | |
denial | expectation | Moby Dick | The Three Fates | |
isolation | navigation | Moby Dick | Quadrant | |
isolation | pilgrimage | Moby Dick | Quadrant | |
isolation | religion | Moby Dick | Quadrant | |
navigation | pilgrimage | Moby Dick | Quadrant | |
navigation | religion | Moby Dick | Quadrant | |
pilgrimage | religion | Moby Dick | Quadrant | |
literature | zodiac | Moby Dick | Bowditch in his Epitome | |
literature | reference | Moby Dick | Bowditch in his Epitome | |
literature | representation | Moby Dick | Bowditch in his Epitome | |
zodiac | reference | Moby Dick | Bowditch in his Epitome | |
zodiac | representation | Moby Dick | Bowditch in his Epitome | |
reference | representation | Moby Dick | Bowditch in his Epitome | |
artifacts | capitalism | The Night Inspector | Charles Eliot Norton | |
artifacts | value | The Night Inspector | Charles Eliot Norton | |
capitalism | value | The Night Inspector | Charles Eliot Norton | |
allusion | author | The Night Inspector | Charles Brockden Brown | |
allusion | gothic | The Night Inspector | Charles Brockden Brown | |
author | gothic | The Night Inspector | Charles Brockden Brown | |
romanticism | narrative | The Night Inspector | Miss Ravenel's Conversion | |
romanticism | war | The Night Inspector | Miss Ravenel's Conversion | |
narrative | war | The Night Inspector | Miss Ravenel's Conversion | |
shame | mask | The Night Inspector | The ghastly expense of life in a waste of shame' | |
war | representation | The Night Inspector | A Marksman on Picket Duty' | |
work | uncertainty | The Night Inspector | St. Elmo|Augusta Jane Evans | |
women | reproduction | The Night Inspector | Lydia Pinkham | |
women | mixture | The Night Inspector | Lydia Pinkham | |
reproduction | mixture | The Night Inspector | Lydia Pinkham | |
religion | literature | The Night Inspector | William Ellery Channing | |
religion | knowledge | The Night Inspector | William Ellery Channing | |
literature | knowledge | The Night Inspector | William Ellery Channing | |
philosophy | pessimism | The Night Inspector | Schopenhauer's The World as Will and Representation | |
philosophy | knowledge | The Night Inspector | Schopenhauer's The World as Will and Representation | |
pessimism | knowledge | The Night Inspector | Schopenhauer's The World as Will and Representation | |
education | literature | The Night Inspector | Maria Edgeworth | |
education | ireland | The Night Inspector | Maria Edgeworth | |
literature | ireland | The Night Inspector | Maria Edgeworth | |
insight | inspiration | The Night Inspector | Washington Irving | |
insight | knowledge | The Night Inspector | Washington Irving | |
inspiration | knowledge | The Night Inspector | Washington Irving | |
law | history | The Night Inspector | The Reminiscences of Rufus Choate | |
betrayal | capitalism | The Night Inspector | The Credit Mobilier Scandal | |
betrayal | money | The Night Inspector | The Credit Mobilier Scandal | |
capitalism | money | The Night Inspector | The Credit Mobilier Scandal | |
author | mask | The Night Inspector | Fiction | |
author | truth | The Night Inspector | Fiction | |
author | fact | The Night Inspector | Fiction | |
author | fiction | The Night Inspector | Fiction | |
mask | truth | The Night Inspector | Fiction | |
mask | fact | The Night Inspector | Fiction | |
mask | fiction | The Night Inspector | Fiction | |
truth | fact | The Night Inspector | Fiction | |
truth | fiction | The Night Inspector | Fiction | |
fact | fiction | The Night Inspector | Fiction | |
interpretation | narrative | The Night Inspector | Reading | |
interpretation | truth | The Night Inspector | Reading | |
interpretation | history | The Night Inspector | Reading | |
interpretation | reading | The Night Inspector | Reading | |
narrative | truth | The Night Inspector | Reading | |
narrative | history | The Night Inspector | Reading | |
narrative | reading | The Night Inspector | Reading | |
truth | history | The Night Inspector | Reading | |
truth | reading | The Night Inspector | Reading | |
history | reading | The Night Inspector | Reading | |
capitalism | money | The Night Inspector | Business | |
capitalism | prostitution | The Night Inspector | Business | |
capitalism | vulnerable | The Night Inspector | Business | |
capitalism | business | The Night Inspector | Business | |
money | prostitution | The Night Inspector | Business | |
money | vulnerable | The Night Inspector | Business | |
money | business | The Night Inspector | Business | |
prostitution | vulnerable | The Night Inspector | Business | |
prostitution | business | The Night Inspector | Business | |
vulnerable | business | The Night Inspector | Business | |
other | stigma | The Night Inspector | Imprisonment | |
other | representation | The Night Inspector | Imprisonment | |
other | imprisonment | The Night Inspector | Imprisonment | |
stigma | representation | The Night Inspector | Imprisonment | |
stigma | imprisonment | The Night Inspector | Imprisonment | |
representation | imprisonment | The Night Inspector | Imprisonment | |
conscious | business | The Night Inspector | War | |
conscious | benefit | The Night Inspector | War | |
conscious | war | The Night Inspector | War | |
business | benefit | The Night Inspector | War | |
business | war | The Night Inspector | War | |
benefit | war | The Night Inspector | War | |
appearance | deformity | The Night Inspector | Disguise | |
appearance | interpretation | The Night Inspector | Disguise | |
appearance | power | The Night Inspector | Disguise | |
appearance | disguise | The Night Inspector | Disguise | |
deformity | interpretation | The Night Inspector | Disguise | |
deformity | power | The Night Inspector | Disguise | |
deformity | disguise | The Night Inspector | Disguise | |
interpretation | power | The Night Inspector | Disguise | |
interpretation | disguise | The Night Inspector | Disguise | |
power | disguise | The Night Inspector | Disguise | |
violence | war | The Night Inspector | Gun | |
violence | weapon | The Night Inspector | Gun | |
violence | oppression | The Night Inspector | Gun | |
violence | gun | The Night Inspector | Gun | |
war | weapon | The Night Inspector | Gun | |
war | oppression | The Night Inspector | Gun | |
war | gun | The Night Inspector | Gun | |
weapon | oppression | The Night Inspector | Gun | |
weapon | gun | The Night Inspector | Gun | |
oppression | gun | The Night Inspector | Gun | |
appearance | read | The Night Inspector | Face | |
appearance | representation | The Night Inspector | Face | |
appearance | communication | The Night Inspector | Face | |
appearance | face | The Night Inspector | Face | |
read | representation | The Night Inspector | Face | |
read | communication | The Night Inspector | Face | |
read | face | The Night Inspector | Face | |
representation | communication | The Night Inspector | Face | |
representation | face | The Night Inspector | Face | |
communication | face | The Night Inspector | Face | |
distrust | anxiety | The Night Inspector | Distrust | |
distrust | wounded | The Night Inspector | Distrust | |
distrust | betrayal | The Night Inspector | Distrust | |
anxiety | wounded | The Night Inspector | Distrust | |
anxiety | betrayal | The Night Inspector | Distrust | |
wounded | betrayal | The Night Inspector | Distrust | |
invention | perception | The Night Inspector | Invention | |
invention | narrative | The Night Inspector | Invention | |
invention | manipulation | The Night Inspector | Invention | |
perception | narrative | The Night Inspector | Invention | |
perception | manipulation | The Night Inspector | Invention | |
narrative | manipulation | The Night Inspector | Invention | |
darkness | race | The Night Inspector | Darkness | |
darkness | shadow | The Night Inspector | Darkness | |
darkness | concealment | The Night Inspector | Darkness | |
race | shadow | The Night Inspector | Darkness | |
race | concealment | The Night Inspector | Darkness | |
shadow | concealment | The Night Inspector | Darkness | |
representation | death | The Night Inspector | Ghost | |
representation | soul | The Night Inspector | Ghost | |
representation | ghost | The Night Inspector | Ghost | |
death | soul | The Night Inspector | Ghost | |
death | ghost | The Night Inspector | Ghost | |
soul | ghost | The Night Inspector | Ghost | |
reversal | expectation | The Art of Fielding | Reversal | |
reversal | representation | The Art of Fielding | Reversal | |
reversal | failure | The Art of Fielding | Reversal | |
expectation | representation | The Art of Fielding | Reversal | |
expectation | failure | The Art of Fielding | Reversal | |
representation | failure | The Art of Fielding | Reversal | |
perfection | control | The Art of Fielding | Error | |
perfection | childhood | The Art of Fielding | Error | |
perfection | naive | The Art of Fielding | Error | |
perfection | error | The Art of Fielding | Error | |
control | childhood | The Art of Fielding | Error | |
control | naive | The Art of Fielding | Error | |
control | error | The Art of Fielding | Error | |
childhood | naive | The Art of Fielding | Error | |
childhood | error | The Art of Fielding | Error | |
naive | error | The Art of Fielding | Error | |
obsession | perfection | The Art of Fielding | Obsession | |
obsession | transformation | The Art of Fielding | Obsession | |
obsession | realization | The Art of Fielding | Obsession | |
perfection | transformation | The Art of Fielding | Obsession | |
perfection | realization | The Art of Fielding | Obsession | |
transformation | realization | The Art of Fielding | Obsession | |
self | representation | The Art of Fielding | Self | |
self | education | The Art of Fielding | Self | |
self | control | The Art of Fielding | Self | |
representation | education | The Art of Fielding | Self | |
representation | control | The Art of Fielding | Self | |
education | control | The Art of Fielding | Self | |
perfection | work | The Art of Fielding | Greatness | |
perfection | discipline | The Art of Fielding | Greatness | |
perfection | construction | The Art of Fielding | Greatness | |
perfection | greatness | The Art of Fielding | Greatness | |
work | discipline | The Art of Fielding | Greatness | |
work | construction | The Art of Fielding | Greatness | |
work | greatness | The Art of Fielding | Greatness | |
discipline | construction | The Art of Fielding | Greatness | |
discipline | greatness | The Art of Fielding | Greatness | |
construction | greatness | The Art of Fielding | Greatness | |
master | power | The Art of Fielding | Vicariism | |
master | control | The Art of Fielding | Vicariism | |
master | vicariism | The Art of Fielding | Vicariism | |
master | idolatry | The Art of Fielding | Vicariism | |
power | control | The Art of Fielding | Vicariism | |
power | vicariism | The Art of Fielding | Vicariism | |
power | idolatry | The Art of Fielding | Vicariism | |
control | vicariism | The Art of Fielding | Vicariism | |
control | idolatry | The Art of Fielding | Vicariism | |
vicariism | idolatry | The Art of Fielding | Vicariism | |
consequence | fate | The Art of Fielding | Connection | |
consequence | impact | The Art of Fielding | Connection | |
consequence | growth | The Art of Fielding | Connection | |
consequence | connection | The Art of Fielding | Connection | |
fate | impact | The Art of Fielding | Connection | |
fate | growth | The Art of Fielding | Connection | |
fate | connection | The Art of Fielding | Connection | |
impact | growth | The Art of Fielding | Connection | |
impact | connection | The Art of Fielding | Connection | |
growth | connection | The Art of Fielding | Connection | |
relationships | trust | The Art of Fielding | Commitment | |
relationships | balance | The Art of Fielding | Commitment | |
relationships | commitment | The Art of Fielding | Commitment | |
trust | balance | The Art of Fielding | Commitment | |
trust | commitment | The Art of Fielding | Commitment | |
balance | commitment | The Art of Fielding | Commitment | |
relationships | naming | The Art of Fielding | Belonging | |
relationships | classification | The Art of Fielding | Belonging | |
relationships | power | The Art of Fielding | Belonging | |
relationships | belonging | The Art of Fielding | Belonging | |
naming | classification | The Art of Fielding | Belonging | |
naming | power | The Art of Fielding | Belonging | |
naming | belonging | The Art of Fielding | Belonging | |
classification | power | The Art of Fielding | Belonging | |
classification | belonging | The Art of Fielding | Belonging | |
power | belonging | The Art of Fielding | Belonging | |
exertion | anxiety | The Art of Fielding | Sweat | |
exertion | self improvement | The Art of Fielding | Sweat | |
exertion | change | The Art of Fielding | Sweat | |
exertion | sweat | The Art of Fielding | Sweat | |
anxiety | self improvement | The Art of Fielding | Sweat | |
anxiety | change | The Art of Fielding | Sweat | |
anxiety | sweat | The Art of Fielding | Sweat | |
self improvement | change | The Art of Fielding | Sweat | |
self improvement | sweat | The Art of Fielding | Sweat | |
change | sweat | The Art of Fielding | Sweat | |
mentor | construction | The Art of Fielding | Guidance | |
mentor | consciousness | The Art of Fielding | Guidance | |
mentor | guidance | The Art of Fielding | Guidance | |
construction | consciousness | The Art of Fielding | Guidance | |
construction | guidance | The Art of Fielding | Guidance | |
consciousness | guidance | The Art of Fielding | Guidance | |
pressure | expectation | The Art of Fielding | Pressure | |
pressure | destruction | The Art of Fielding | Pressure | |
pressure | reality | The Art of Fielding | Pressure | |
expectation | destruction | The Art of Fielding | Pressure | |
expectation | reality | The Art of Fielding | Pressure | |
destruction | reality | The Art of Fielding | Pressure | |
language | literature | The Art of Fielding | Language | |
language | communication | The Art of Fielding | Language | |
literature | communication | The Art of Fielding | Language |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
delim = ',' | |
columns = ['tag1', 'tag2', 'Book', 'Topic'] | |
reader = csv.DictReader(open('outfinal.csv', 'rbU'), delimiter=delim,fieldnames=columns) | |
topiclist = dict() | |
taglist = dict() | |
multiple = dict() | |
#Make a dictionary of the topics | |
for row in reader: | |
# topic = row["Topic"] | |
if row['Topic'] not in topiclist: | |
topiclist[row['Topic']] = [] | |
#seems dumb that this happens again | |
reader2 = csv.DictReader(open('outfinal.csv', 'rbU'), delimiter=delim,fieldnames=columns) | |
#Populate an array of the unique tags for each topic | |
for row in reader2: | |
if row['tag1'] not in topiclist[row['Topic']]: | |
topiclist[row['Topic']].append(row['tag1']) | |
if row['tag1'] not in taglist: | |
taglist[row['tag1']]= 1 | |
else: | |
taglist[row['tag1']] += 1 | |
if row['tag2'] not in topiclist[row['Topic']]: | |
topiclist[row['Topic']].append(row['tag2']) | |
if row['tag2'] not in taglist: | |
taglist[row['tag2']]= 1 | |
else: | |
taglist[row['tag2']] += 1 | |
# see where there multiples | |
for tag in taglist: | |
if taglist[tag] > 1: | |
multiple[tag] = taglist[tag] | |
list = topiclist.keys() | |
numtopics = len(list) | |
#print list | |
n = 0 | |
RESULT= [1, 2, 3] | |
with open('topicmatch.csv', 'wb') as test_file: | |
file_writer = csv.writer(test_file) | |
while n <= (numtopics-1): | |
t1 = topiclist[list[n]] | |
p = n+1 | |
while p < numtopics: | |
t2 = topiclist[list[p]] | |
matches = set(t1) & set(t2) | |
#print matches | |
RESULT[0] = list[n] | |
RESULT[1] = list[p] | |
RESULT[2] = len(matches) | |
#print RESULT | |
file_writer.writerow(RESULT) | |
p = p+1 | |
n = n+1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment