87f1ec81862468bd6381fd5a5d1579861a2a27d4,test/basic_test.py,,pmi_test,#Any#,194
Before Change
alpha=0.0001,
verbose=True)
for pair, pmi in sorted(pmi_dok.items(), key=lambda x:-x[1])[100:110]:
pair_ = (idx2vocab[pair[0]], idx2vocab[pair[1]])
print("pmi {} = {:.3f}".format(pair_, pmi))
print("computed PMI")
def main():
After Change
print("col shape = {}".format(cols.shape))
print("data shape = {}".format(data.shape))
for indpt in data.argsort()[-150:-100]:
i = rows[indpt]
j = cols[indpt]
pair = (idx2vocab[i], idx2vocab[j])
value = data[indpt]
print("pmi {} = {:.3f}".format(pair, value))
print("computed pmi")
def main():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: lovit/soynlp
Commit Name: 87f1ec81862468bd6381fd5a5d1579861a2a27d4
Time: 2019-02-17
Author: soy.lovit@gmail.com
File Name: test/basic_test.py
Class Name:
Method Name: pmi_test
Project Name: lovit/soynlp
Commit Name: 87f1ec81862468bd6381fd5a5d1579861a2a27d4
Time: 2019-02-17
Author: soy.lovit@gmail.com
File Name: test/basic_test.py
Class Name:
Method Name: pmi_test
Project Name: dirty-cat/dirty_cat
Commit Name: d3ec733c425e7d9d066380b95e04605843339bd0
Time: 2018-11-08
Author: maxime.cuny@inria.fr
File Name: dirty_cat/similarity_encoder.py
Class Name:
Method Name: get_prototype_sorted_by_frequencies
Project Name: broadinstitute/gtex-pipeline
Commit Name: 1868550f1b5db4294f65ad06cc657f76f8b0f96c
Time: 2017-05-15
Author: francois@broadinstitute.org
File Name: rnaseq/src/combine_GCTs.py
Class Name:
Method Name: