diff --git a/wikstraktor.py b/wikstraktor.py index a40089d4abe5338aa26f485c3e0d77744ba46e8a..266129886a131ef2a2c1bd582b5d44dbbd08da92 100755 --- a/wikstraktor.py +++ b/wikstraktor.py @@ -258,7 +258,7 @@ class ParserContext: #Dans le dictionnaire de keys, il n'y a jamais de senses ou de POS res = Entry(self.lemma) for l in self.context: - print(l.keys()) + #print(l.keys()) if "pro" in l.keys(): res.set_pronunciations(l['pro']) if "ety" in l.keys(): @@ -371,16 +371,16 @@ class Wikstraktor: res = title == self.constants['pro'] else: res = title in self.constants['pro'] - print(title, res) + #print(title, res) return res - + def isEty(self, title): if type(self.constants['ety']) == str: res = title == self.constants['ety'] else: res = title in self.constants['ety'] return res - + def process_POS(self, parsedwikitext): pass#in subclass @@ -402,7 +402,7 @@ class Wikstraktor: if __name__ == "__main__": #e = Wikstraktor.get_instance('en', "en") - f = Wikstraktor.get_instance('fr', 'en') + f = Wikstraktor.get_instance('en', 'en') # print(e.get_file_url("File:LL-Q1860 (eng)-Nattes à chat----parent.wav")) # print(e.get_file_url("File:LL-Q1860 (eng)-Nattes à chat-parent.wav")) #e.fetch("water")