Python Forum
Computational linguistic program - Need some help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Computational linguistic program - Need some help
#1
Hello,
I am a student in linguistic from France. So excuse me if my english is perfectible.
I follow a course in computational linguistic and I have to create a program from a list of projects proposed by my teacher.
I chose to create one that open a text, delete a specific target language element (in this case, the articles from dutch, het and de) and submit to the user, line by line, the sentences with the missing article and asks for the answer. At the end, it gives the grade, out of the total number of the sentences.
Here it is : https://github.com/GangleriS/fill_in_the...ree/master
There is the program and the test text file.
I have a problem with it :
I do not know why is there two rounds of questioning as you will see. And when I try to adjust, like :
while i<=2 and o<=2:
or
while i<len(questions) and o<len(words):
that give this :
IndexError: list index out of range

Thanks for your help.
Reply


Messages In This Thread
Computational linguistic program - Need some help - by Antoine - May-01-2019, 12:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Advanced Algorithms and Computational Models hafedh 4 2,425 Aug-31-2020, 06:37 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020