Beispiel #1
0
#sqa.combineTerms(result, maxThreads = 5)
sqa.combineTerms(result)
print "combined terms"
for t in result:
    print t
print ""

print "change idx"
result2 = []
for t in result:
    tmp = sqa.idxname( t )
    result2.append( tmp )
    print tmp
print ""

#print "obtain weight factors"
#result3 = []
#for t in result2:
#    tmp = sqa.weight_factor( t )
#    result3.append( tmp )
#    print tmp
#print ""

print "non eq idx sort"
result = sqa.sort_noeqidx_terms ( result2 )
for t in result:
    print t
print ""


print ""

sqa.combineTerms(result, maxThreads=10)
#sqa.combineTerms(result)
print "combined terms"
for t in result:
    print t
print ""

print "change idx"
result2 = []
for t in result:
    tmp = sqa.idxname(t)
    result2.append(tmp)
    print tmp
print ""

print "obtain weight factors"
result3 = []
for t in result2:
    tmp = sqa.weight_factor(t)
    result3.append(tmp)
    print tmp
print ""

print "non eq idx sort"
result3 = sqa.sort_noeqidx_terms(result3)
for t in result3:
    print t
print ""