mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
fix: [Term tracker] fix fct args
This commit is contained in:
parent
7a652b5195
commit
d97305acc1
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ class Tracker_Term(AbstractModule):
|
||||||
####### # TODO: check if source needed #######
|
####### # TODO: check if source needed #######
|
||||||
for word in self.list_tracked_words:
|
for word in self.list_tracked_words:
|
||||||
if word in dict_words_freq:
|
if word in dict_words_freq:
|
||||||
self.new_term_found(word, 'word', item.get_id(), item_date, item_source)
|
self.new_term_found(word, 'word', item.get_id(), item_source)
|
||||||
|
|
||||||
# check words set
|
# check words set
|
||||||
for elem in self.set_tracked_words_list:
|
for elem in self.set_tracked_words_list:
|
||||||
|
@ -109,7 +109,7 @@ class Tracker_Term(AbstractModule):
|
||||||
if word in dict_words_freq:
|
if word in dict_words_freq:
|
||||||
nb_uniq_word += 1
|
nb_uniq_word += 1
|
||||||
if nb_uniq_word >= nb_words_threshold:
|
if nb_uniq_word >= nb_words_threshold:
|
||||||
self.new_term_found(word_set, 'set', item.get_id(), item_date, item_source)
|
self.new_term_found(word_set, 'set', item.get_id(), item_source)
|
||||||
|
|
||||||
def new_term_found(self, term, term_type, item_id, item_source):
|
def new_term_found(self, term, term_type, item_id, item_source):
|
||||||
uuid_list = Term.get_term_uuid_list(term, term_type)
|
uuid_list = Term.get_term_uuid_list(term, term_type)
|
||||||
|
|
Loading…
Reference in a new issue