public Set < String > getVocab ( ) { Set < String > vocab = new HashSet < String > ( ) ; for ( Sentence sent : this ) { for ( String label : sent ) { vocab . add ( label ) ; } } return vocab ; }
Vocabulary of the sentences .