nltk.FeatStructReader.read_partial

FeatStructReader.read_partial(s, position=0, reentrances=None, fstruct=None)[source]

Helper function that reads in a feature structure.

Parameters:
  • s – The string to read.
  • position – The position in the string to start parsing.
  • reentrances – A dictionary from reentrance ids to values. Defaults to an empty dictionary.
Returns:

A tuple (val, pos) of the feature structure created by parsing and the position where the parsed feature structure ends.

Return type:

bool