Skip to content
Snippets Groups Projects
user avatar
grzelaks authored
4c4034fc
History

OpenCCG GUM cooking

This repository contains the english-cooking grammar for OpenCCG, as well as the related ontologies. It is based on GUM 3 space and the english-diaspace grammar, but contains a cooking specific domain and is extended by many rules to parse sentences from the cooking domain.

Usage

If you are just looking to integrate the grammar or the owl files into your application, just download them and put them where you need them to be. No further setup required.

If you are developing the grammars and changing the ontologies, you can use the owl2types tool to update the types.xml.

Install

To install owl2types, we recommend using pip (best inside a virtual environment, e.g. using pipenv):

pip install git+https://github.com/shoeffner/openccg-gum-cooking

On Windows, we had troubles getting owlready2 directly from the setup.py, this you can use the following command to install it:

pip install -r requirements.txt

Converting owls

To convert our ontologies to the types.xml, either run make, if you have make available (on UNIXes), or run:

owl2types --output english-cooking/types.xml \
          --exclude-owl-thing \
          --lookup ./ontologies \
          ./ontologies/SLM-cooking.owl:slm

On Windows, the command should look like this:

owl2types --output english-cooking\types.xml --exclude-owl-thing --lookup ontologies ontologies\SLM-cooking.owl:slm

Testing owl2types

To test the owl2types tool, run make tests or python -m unittest discover tools/tests.

Licenses, References and Acknowledgments

Acknowledgments

The research/work done in this repository has been partially supported by the German Research Foundation DFG, as part of Collaborative Research Center (Sonderforschungsbereich) 1320 "EASE - Everyday Activity Science and Engineering", University of Bremen (https://www.ease-crc.org/). The research/work was conducted in subprojects P01 and H02.

License

The content in this repository is released under various licenses.

In general, you are allowed to use, reuse, remix, and build-upon all works in this repository, given that you give proper attribution.

  • The code (i.e. every file directly inside the root directory and everything inside tools directory) is licensed under the MIT license.
  • The ontologies inside the ontologies directory are licensed under the Creative Commons (CC BY 4.0) license.
  • The original XML grammar files inside english-cooking are released under the LGPL 3.0, and as such, the derivative ccg-grammar file is released under the same license.

You can find the full license texts in LICENSE.md.

References

Lamy JB. Owlready: Ontology-oriented programming in Python with automatic classification and high level constructs for biomedical ontologies. Artificial Intelligence In Medicine 2017;80:11-28