Skip to content

shanpinliu/redbed_app

 
 

Repository files navigation

Redbed GDD application

This is a fork of the GeoDeepDive text mining application used in Peters, Husson and Wilcots 2017, Geology. Please see the original Stromatolite Application Demonstration for a comprehensive description of the method and dependencies.

We target to identify globally lithological colors and stratigraphic names in order to address the questions of red-bed distribution and environmental evolution. This application worked well in python 3 on my PC computer (Windows 10) after setting up the Postgres (in the 'setup.sh' file) according to the config file.

Some modefied codes are annotated in the files. These modefications are mainly for: 1) searching short words, e.g. red; 2) deeper search of age information; 3) Python 3 compatibility; 4) adapt with multiprocess.

run.py

Python script that runs the entire application, including any setup tasks and exporting of results to the folder /output.

Results Summary

The results table is a CSV file exported to the folder /output. In the file, each row is a stratigraphic name that contains stromatolites according to the application logic - that is, each row is a "stromatolite-stratigraphic name" tuple. Columns of each row contain information about the extracted tuple, including which document and phrase it came from and the link between the discovered stratigraphic name and the Macrostrat database (if such a link exists). The columns are detailed below:

Column Description
result_id identifier for result tuple from the PostgreSQL results table
docid identifier for the relevant document from the GeoDeepDive database, with metadata for it available through the GeoDeepDive API (i.e., 558dcf01e13823109f3edf8e)
sentid identifier for sentence within the specified document where the tuple was extracted
target_word stromatolite word (i.e., stromatolite, stromatolites, stromatolitic).
strat_phrase_root "unique" portion of the identified stratigraphic name inferred to contained stromatolites (i.e., "Wood Canyon" from the "Wood Canyon Formation")
strat_flag word that signified to the strat_name extractor (ext_strat_phrase.py) that a word combination was a likely stratigraphic phrase (i.e., "Formation" for the "Wood Canyon Formation"). Note that this field could be "mention" for informal usage (i.e. "Wood Canyon stromatolites"), if a name has been formally defined in the same document.
strat_name_id stratigraphic name id for the Macrostrat database. For example, this api call retrieves the definition for the "Wood Canyon Formation" from the Macrostrat database. This api call retrieves all lithostratigraphic units linked to the "Wood Canyon Formation" from the Macrostrat database. Note that this field could be "0" if the stratigraphic name describes a rock body outside of Macrostrat's areal coverage. If a name is linked to multiple stratigraphic names in the Macrostrat database, each identifier is separated by a "" (i.e. "61671446~2442").
in_ref application determination (ext_references.py) if the extracted tuple came from the reference list of the specified document.
source classifier indicating whether the extraction was from the same sentence ("in_sent") or from a nearby sentence ("out_sent").
phrase full phrase that serves as basis for the determination that the stratigraphic phrase contains stromatolite fossils.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.2%
  • Shell 1.8%