wmacmil / gf-embedded-grammars-tutorial

Examples how to use GF grammars from another program

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tutorial: How to use GF grammars from another program

This repository contains code examples to complement my blog post on embedding grammars. For general introduction, here's the intro of the blog post.

This post will show how to use GF grammars from an external program, and how to manipulate GF trees from that program. The topic is introduced in Lesson 7 of the tutorial, and I will cover parts that I find missing in the tutorial:

  • Installation, other practicalities of the GF ecosystem
  • Linguistically motivated example of tree manipulation
  • Examples in both Haskell and Python (the examples are the same, so only knowing one is enough)

About

Examples how to use GF grammars from another program

License:Creative Commons Zero v1.0 Universal


Languages

Language:Haskell 39.4%Language:Jupyter Notebook 34.3%Language:Grammatical Framework 26.4%