diff --git a/src/wiktextract_wrapper.py b/src/wiktextract_wrapper.py index 9ec8e61c7a84d5459a7c7b0b530b04f17190e91e..b3761d86047571746da21785ff8779e7abf28afe 100644 --- a/src/wiktextract_wrapper.py +++ b/src/wiktextract_wrapper.py @@ -24,10 +24,13 @@ class Wiktextract: page = self.wxr.wtp.get_page(title) if not page: return None - result = parse_page(self.wxr, title, page.body) - converted_result = self.convert(result) + + result = parse_page(self.wxr, title, page.body) + #print(json.dumps(result), "\n\n\n") + converted_result = self.convert(result) + print(json.dumps(converted_result)) return json.dumps(converted_result) #return result @@ -90,7 +93,6 @@ class Wiktextract: # Copy the translations attribute transformed_pos["translations"] = pos.get("translations", []) transformed_data.append(transformed_pos) - return transformed_data