Closed perfidia closed 11 years ago
done
still not working
for the following code
ad1 = PlWikiProvider()
ad3 = FileProvider("../data/polish")
print ad3.get_conf("występuje")
ad1.get_word(("czasownik", "występować", {'aspekt': 'niedokonane', 'forma': 'czas terazniejszy', 'liczba': 'mnoga', 'osoba': 'trzecia'}))
print ad1.get_conf("występuje")
get_conf returns different results:
# FileProvider
[('czasownik', 'wyst\xc4\x99powa\xc4\x87', {'forma': 'czas tera\xc5\xbaniejszy',
'osoba': 'pierwsza', 'aspekt': 'dokonane', 'liczba': 'pojedyncza'}), ('czasowni
k', 'wyst\xc4\x99powa\xc4\x87', {'forma': 'czas tera\xc5\xbaniejszy', 'osoba': '
trzecia', 'aspekt': 'dokonane', 'liczba': 'pojedyncza'})]
# PlWikiProvider
{'forma': 'czas terazniejszy', 'osoba': 'trzecia', 'type': 'czasownik', 'aspekt'
: 'niedokonane', 'liczba': 'pojedyncza'}
Please check what does FileProvider returns.