Skip to content

Instantly share code, notes, and snippets.

@bharatc9530
Created August 4, 2020 08:30
Show Gist options
  • Save bharatc9530/2df1b48871ecc71224e848446ae442c9 to your computer and use it in GitHub Desktop.
Save bharatc9530/2df1b48871ecc71224e848446ae442c9 to your computer and use it in GitHub Desktop.
maxlen=-1
for doc in X_train:
if(maxlen<len(doc)):
maxlen=len(doc)
print(maxlen)
print("The maximum number of words in any document is : ",maxlen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment