test_sents = data[:400]
twosidedtagger = TwoSidedTagger({}, backoff=nltk.DefaultTagger('the'))
twosidedtagger._train(train_sents)
Probability tree for sentences in nltk employing both lookahead and lookback dependencies