nltk.print_string()ΒΆ

nltk.print_string(s, width=70)[source]ΒΆ

Pretty print a string, breaking lines on whitespace

Parameters:
  • s (str) – the string to print, consisting of words and spaces
  • width (int) – the display width