-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprintDoc.py
55 lines (49 loc) · 2.11 KB
/
printDoc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from wordCloud_FN import *
from wordCloud_parallel import *
def main():
print (remove_http.__doc__)
print ("*"*105)
print (df_remove_http.__doc__)
print ("*"*105)
print (remove_punctuation.__doc__)
print ("*"*105)
print (df_remove_punctuation.__doc__)
print ("*"*105)
print (df_lowerCase.__doc__ )
print ("*"*105)
print (tokenization.__doc__)
print ("*"*105)
print (df_tokenization.__doc__)
print ("*"*105)
print (remove_stopwords.__doc__)
print ("*"*105)
print (df_remove_stopwords.__doc__)
print ("*"*105)
print (remove_another_stopwords.__doc__)
print ("*"*105)
print (lemmatizer.__doc__)
print ("*"*105)
print (df_lemmatizer.__doc__)
print ("*"*105)
print (remove_emoji.__doc__)
print ("*"*105)
print (processFunction.__doc__)
def saveDocString(filename):
with open (filename, "w") as f:
f.write('\n'+ (remove_http.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (df_remove_http.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (remove_punctuation.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (df_remove_punctuation.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (df_lowerCase.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (tokenization.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (df_tokenization.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (remove_stopwords.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (df_remove_stopwords.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (remove_another_stopwords.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (lemmatizer.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (df_lemmatizer.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (remove_emoji.__doc__).strip() +'\n\n'+'*'*105 + '\n')
f.write('\n'+ (processFunction.__doc__).strip() +'\n\n'+'*'*105 + '\n')
if __name__ =="__main__":
main()
saveDocString('help.txt')