mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
chg: [module] debug
This commit is contained in:
parent
44d1860b87
commit
e55aeab11c
1 changed files with 12 additions and 2 deletions
|
@ -71,7 +71,6 @@ class CEDetector(AbstractModule):
|
||||||
words = set(words)
|
words = set(words)
|
||||||
|
|
||||||
for word in words:
|
for word in words:
|
||||||
print(word)
|
|
||||||
if word in self.csam_words:
|
if word in self.csam_words:
|
||||||
is_csam = True
|
is_csam = True
|
||||||
if word in self.child_worlds:
|
if word in self.child_worlds:
|
||||||
|
@ -111,7 +110,18 @@ def test_detection():
|
||||||
is_detected = True
|
is_detected = True
|
||||||
if not is_detected:
|
if not is_detected:
|
||||||
not_detected.add(domain)
|
not_detected.add(domain)
|
||||||
print(not_detected)
|
|
||||||
|
print()
|
||||||
|
print()
|
||||||
|
print()
|
||||||
|
print()
|
||||||
|
for domain in not_detected:
|
||||||
|
dom = Domain(domain)
|
||||||
|
print('-----------', domain)
|
||||||
|
for h in dom.get_correlation('title').get('title', []):
|
||||||
|
print(Title(h[1:]).get_content().lower())
|
||||||
|
print()
|
||||||
|
print()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in a new issue