mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
fix: [languages] fix language module
This commit is contained in:
parent
6c77ca5136
commit
207a6524d7
1 changed files with 3 additions and 3 deletions
|
@ -28,9 +28,9 @@ class Languages(AbstractModule):
|
||||||
obj = self.get_obj()
|
obj = self.get_obj()
|
||||||
|
|
||||||
if obj.type == 'item':
|
if obj.type == 'item':
|
||||||
if item.is_crawled():
|
if obj.is_crawled():
|
||||||
domain = Domain(item.get_domain())
|
domain = Domain(obj.get_domain())
|
||||||
for lang in item.get_languages(min_probability=0.8):
|
for lang in obj.get_languages(min_probability=0.8):
|
||||||
domain.add_language(lang.language)
|
domain.add_language(lang.language)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue