code: def demo():
      from nltk.corpus import brown
  
      sents = list(brown.tagged_sents())
      test = list(brown.sents())
  
      tagger = TnT()
      tagger.train(sents[200:1000])
  
      tagged_data = tagger.tagdata(test[100:120])
  
      for j in range(len(tagged_data)):
          s = tagged_data[j]
          t = sents[j + 100]
          for i in range(len(s)):
              print(s[i], "--", t[i])
          print()
  
file_path: nltk/nltk/tag/tnt.py
imports: from math import log
  from operator import itemgetter
  from nltk.probability import ConditionalFreqDist, FreqDist
  from nltk.tag.api import TaggerI
label_desc: Use image node_id 2 for calling a global function with example usage: demo() without return types