eta.util.tt.parse.from_lisp_file

from_lisp_file(fname)[source]

Read a LISP file and parse the rule trees and feature definitions contained within.

Parameters:

fname (str) – The filename to read.

Returns:

  • trees (dict) – A dict containing all choice trees, keyed on their root names.

  • feats (dict) – A dict mapping words to feature lists.