Skip to content

Commit 07a92f5

Browse files
committed
new file: ml.py
1 parent 6fb3af9 commit 07a92f5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ml.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from sklearn.feature_extraction.text import CountVectorizer
2+
3+
# the last paragraph of M. Luther King Jr's speech
4+
5+
corpus = """
6+
7+
And when this happens, and when we allow freedom ring, when we let it ring from every village and every hamlet, from every state and every city, we will be able to speed up that day when all of God's children, black men and white men, Jews and gentiles, Protestants and Catholics, will be able to join hands and sing in the words of the old Negro spiritual, "Free at last! Free at last! Thank God Almighty, we are free at last!"
8+
9+
""".split(".")
10+
11+

0 commit comments

Comments
 (0)