There are two example corpora: corp-a and corp-b. Each have a
configuration file in the config directory and corpus JSON file in
the corpus directory.
This example shows how to use the command line to create adhoc corpora (which is any corpus that isn't the AMR release, Little Prince or AMR Bio corpora).
There are two source files:
harness.sh: life-cycle for AMR corpora given JSON source/summaries and shows how to use the command line to create new corporaharness.py: example of how to programmatically access and align the corpora
To run the example, first create the AMR corpora:
- Create
corp-aby parsing the sentences in thecorpus/corp-a.jsoninto AMR filecorpus/corp-a.txt:./harness.sh mkcorp corp-a - Do the same for
corp-b:./harness.sh mkcorp corp-b - Optionally align via the command line:
./harness.sh align corp-a
Now that the corpus/corp-a.txt AMR output is available, run the examples:
- Access and align the corpora in the example Python file harness.py.
- Optionally remove all corpus artifacts:
./harness.sh clean corp-a