- Inputs: a list of authors in the three organizational perspective categories
- Outputs: ngram counts of the authors found in the citations of JSTOR articles, saved in
citation_and_expanded_dict_count_{date}.csv, where{date}is replaced by the date (inmmddyyyyformat) on which the script was run.
- Inputs: ngram counts of the authors from
Citation_Count.ipynb - Outputs: counts for all the dictionaries merged into one dataframe with ngram and author counts for each article, saved as
counts_and_subject.csv.
Combine_Meta_Ngram_Data_into_Visual.ipynb
- Merges metadata result with n-gram result, and then filters and aggregates. At present it removes articles from before 1970 or after 2020. It then produces a graph of frequencies of words in each dictionary over time.
- Inputs: file that contains metadata about every article and a file that contains all the n-gram counts of each article
- Outputs: line plot showing trends in language over time
(scripts and files enumerated below)
run_all.sh: Shell script for automatically running the pipeline.ParseMetaFilesUpdated.py: Python script for extracting useful information from metadata XML files and storing it in tabular form. It takes a batch of input data and produces a table for the batch.merge_metadata_result.py: Python script for merging the metadata results from batches and combining them into a single table.split_dictionary.py: Python script for splitting combined n-gram dictionaries into sub-dictionaries for each type of n-gram (unigram, bigram, and trigram).parse_ngram_files.py: Python script for counting dictionary words for one type of n-gram, in batches.combine_ngram_result.py: Python script for merging the n-gram results from batches and combining them into a single table.Combine_Meta_Ngram_Data_into_Visual.ipynb: Merges metadata result with n-gram result, then filters and aggregates them. At present it removes articles from before 1970 or after 2020. It then produces a graph of frequencies of words in each dictionary over time.
- Metadata
jstor_data/metadata/journal-article-*.xml: Metadata files, each corresponding to one article. - N-gram
jstor_data/ngram1/journal-article-*-ngram1.txt: Lists of all unigrams and their counts in one article.jstor_data/ngram2/journal-article-*-ngram2.txt: Lists of all unigrams and their counts in one article.jstor_data/ngram2/journal-article-*-ngram2.txt: Lists of all unigrams and their counts in one article.
- Dictionaries
Dictionaries/Culture.csv: List of all dictionary words for "Culture".Dictionaries/Demographic.csv: List of all dictionary words for "Demographic".Dictionaries/Relational.csv: List of all dictionary words for "Relational".
- Journal metadata
MetaData/journal titles & subjects 10-15 edited.csv: Table of relevant journals, their primary subjects, and more.
- Metadata results
metadata_results/part*.h5: HDF file for table as parsed by 1.2. - Combined metadata result
metadata_combined.h5 - Split dictionaries
dicts/Culture_*.csv: List of dictionary words of each type of n-gram for "Culture".dicts/Demographic_*.csv: List of dictionary words of each type of n-gram for "Demographic".dicts/Relational_*.csv: List of dictionary words of each type of n-gram for "Relational".
- N-gram results
ngram1_part*.h5: HDF file for unigram results as parsed by 1.5.ngram2_part*.h5: HDF file for bigram results as parsed by 1.5.ngram3_part*.h5: HDF file for trigram results as parsed by 1.5.
- Combined n-gram result
ngram_combined.h5
** Data flow image also online at https://i.imgur.com/gBfgTNF.png
