eta.util.tt.parse.from_lisp_dirs

from_lisp_dirs(dirs)[source]

Recursively read choice trees and word features from all LISP files in a directory or list of directories.

Parameters:

dirs (str or list[str]) – The directory or directories 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.

  • preds (dict) – A dict mapping predicate names to functions.