-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_run.py
68 lines (53 loc) · 2.16 KB
/
test_run.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
56
57
58
59
60
61
62
63
64
65
66
67
import os
import string
import math
import string
import files_read
import wordpositionlist
import count_vectorize
import check_named_entity
import check_noun_phrase
import wordpositionlist
import distbetwords
import get_word_length
import tfidf
import capitalisation
import wikifreq
all_text = ["my name is Anup it is", "is Divyansh Goel in an working ass hole ass Divyansh", "is this working right this"]
dic_arr = files_read.id_words(all_text)
print dic_arr
#print files_read.feat_arr(wordpositionlist.wordpos, all_text, dic_arr)
#score_dic = [count_vectorize.term_freq(text) for text in all_text]
#print score_dic
#print files_read.feat_arr(count_vectorize.term_freq, all_text, dic_arr)
#nameentity_dic = [check_named_entity.checkNamedEntities(text) for text in all_text]
#nameentity_arr = files_read.feat_arr(check_named_entity.checkNamedEntities, all_text, dic_arr)
#print nameentity_arr
#nounphrase_dic = [check_noun_phrase.checkNounPhrases(text) for text in all_text]
#nounphrase_arr = files_read.feat_arr(check_noun_phrase.checkNounPhrases, all_text, dic_arr)
#print nounphrase_dic
#print nounphrase_arr
#wordpos_dic = [wordpositionlist.wordpos(text) for text in all_text]
#wordpos_arr = files_read.feat_arr(wordpositionlist.wordpos, all_text, dic_arr)
#print wordpos_dic
#print wordpos_arr
#distrms_dic = [distbetwords.disBetWords(text) for text in all_text]
#distrms_arr = files_read.feat_arr(distbetwords.disBetWords, all_text, dic_arr)
#print distrms_dic
#print distrms_arr
#wordlen_dic = [get_word_length.getWordLength(text) for text in all_text]
#wordlen_arr = files_read.feat_arr(get_word_length.getWordLength, all_text, dic_arr)
#print wordlen_dic
#print wordlen_arr
#tfidf_dic = tfidf.tfidFreq(all_text) #not like all others !special attention req
#tfidf_arr = tfidf.tfidf_arr(all_text, dic_arr)
#print tfidf_dic
#print tfidf_arr
#caps_dic = [capitalisation.capitalWords(text) for text in all_text]
#caps_arr = files_read.feat_arr(capitalisation.capitalWords, all_text, dic_arr)
#print caps_dic
#print caps_arr
#wiki_dic = [wikifreq.wikifrequncy(text) for text in all_text]
#wiki_arr = files_read.feat_arr(wikifreq.wikifrequncy, all_text, dic_arr)
#print wiki_dic
#print wiki_arr