Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for Italian (DEIT) #3
Trying to add DEIT support.
Any idea? :-)
One thing i see is that your languages:
I also think that the ACCEPTED_PDFS variable isn't used anymore. I was using that for the web version but i changed how i was handling that. But that won't cause any problems anyway. Could you check if changing the languages to DE and IT works?
In the extract_sentences function, we have:
if type == info['languages']: sentence_num += 1 sentences.append() # if it's the first type, it's a new sentence if type in info['languages']: sentence = Sentence(index=sentence_num) sentences[-1].append(sentence)
If the languages are incorrect, it's never going to create the sentence variable.