Package nltk :: Package inference :: Module discourse
[hide private]
[frames] | no frames]

Module discourse

source code

Classes [hide private]
  DiscourseTester
Check properties of an ongoing discourse.
Functions [hide private]
list of Expression
parse_fol(s)
Temporarily duplicated from nltk.sem.util.
source code
 
discourse_demo()
Illustrate the various methods of DiscourseTester
source code
Function Details [hide private]

parse_fol(s)

source code 

Temporarily duplicated from nltk.sem.util. Convert a file of First Order Formulas into a list of Expressions.

Parameters:
  • s (str) - the contents of the file
Returns: list of Expression
a list of parsed formulas.