Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

max(X_train, key=len).split()

maxlen = len(max(l, key=len)) 
maxlist = [s for s in l if len(s) == maxlen]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
1+2 =