Created
August 4, 2020 08:30
-
-
Save bharatc9530/2df1b48871ecc71224e848446ae442c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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