original_docstring: 
      Check that interpret_sents() is compatible with legacy grammars that use
      a lowercase 'sem' feature.
  
      Define 'test.fcfg' to be the following
  
      
docstring: Check that interpret_sents() is compatible with legacy grammars that use
  a lowercase 'sem' feature.
  
  Define 'test.fcfg' to be the following
docstring_tokens: Check that interpret_sents () is compatible with legacy grammars that use a lowercase ' sem ' feature . Define ' test . fcfg ' to be the following
code: def demo_legacy_grammar():
      """
      Check that interpret_sents() is compatible with legacy grammars that use
      a lowercase 'sem' feature.
  
      Define 'test.fcfg' to be the following
  
      """
      from nltk.grammar import FeatureGrammar
  
      g = FeatureGrammar.fromstring(
          """
      % start S
      S[sem=<hello>] -> 'hello'
      """
      )
      print("Reading grammar: %s" % g)
      print("*" * 20)
      for reading in interpret_sents(["hello"], g, semkey="sem"):
          syn, sem = reading[0]
          print()
          print("output: ", sem)
code_tokens: def demo_legacy_grammar ( ) : from nltk . grammar import FeatureGrammar g = FeatureGrammar . fromstring ( """
      % start S
      S[sem=<hello>] -> 'hello'
      """ ) print ( "Reading grammar: %s" % g ) print ( "*" * 20 ) for reading in interpret_sents ( [ "hello" ] , g , semkey = "sem" ) : syn , sem = reading [ 0 ] print ( ) print ( "output: " , sem )
short_docstring: Check that interpret_sents() is compatible with legacy grammars that use
  a lowercase 'sem' feature.
short_docstring_tokens: Check that interpret_sents () is compatible with legacy grammars that use a lowercase ' sem ' feature .
comment: """
      Check that interpret_sents() is compatible with legacy grammars that use
      a lowercase 'sem' feature.
  
      Define 'test.fcfg' to be the following
  
      """