Skip to content

Commit

Permalink
remove deprecated config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzay-G committed Mar 9, 2022
1 parent 2caee6b commit f204d1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 167 deletions.
8 changes: 1 addition & 7 deletions espial/datastruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ def __init__(self, conf, doc_cache):
self.conf = conf
self.sim_cache = {} # 2D graph of sim

self.avg_exp_o = 0
self.tf_exp_o = 0
if conf["openness"]:
self.avg_exp_o = 0.04 * -conf["openness"]
self.tf_exp_o = 0.001 * -conf["openness"]

def create_link(self, item, concept, is_ent=False):
"""
Creates link in the graph between an item and a concept
Expand Down Expand Up @@ -89,7 +83,7 @@ def remove_irrelevant_edges(self):
is_ent = self.graph.nodes[concept]["is_ent"]
remove_crit = (
tf_idf
< self.conf["cutoffs"]["min_edge_noun_tf_idf"] + self.tf_exp_o
< self.conf["cutoffs"]["min_edge_noun_tf_idf"]
and not is_ent
) or (tf_idf < self.conf["cutoffs"]["min_edge_ent_tf_idf"] and is_ent)
has_vector = self.concept_cache[concept].has_vector
Expand Down
160 changes: 0 additions & 160 deletions espial/static/force4.js

This file was deleted.

0 comments on commit f204d1c

Please sign in to comment.