nltk.text_type.isdigit

text_type.isdigit() → bool

Return True if all characters in S are digits and there is at least one character in S, False otherwise.