Skip to content

Commit

Permalink
create new task: evaluation. get data from wikipedia sanskrit article…
Browse files Browse the repository at this point in the history
… appendix: sanskrit word frequency list[s]

	new file:   eval/evaler.py
	new file:   eval/words.csv
  • Loading branch information
aalok-sathe committed Mar 5, 2018
1 parent 5cefe51 commit 541592c
Show file tree
Hide file tree
Showing 3 changed files with 2,214 additions and 0 deletions.
24 changes: 24 additions & 0 deletions eval/evaler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /bin/env/ python3

import os
import sys

sys.path.insert(1, os.path.join(sys.path[0], '..'))

import transcriber_data as td

def transcribe(text):
return td.transcribe(text)

def transcribe_file(filename):
lines = None
with open(filename, 'r') as f:
lines = f.readlines()

#try:
for line_index in range(len(lines)):
print(lines[line_index].split()[0], "\t", transcribe(lines[line_index].split()[0]))
#except Exception as E:
# print(E)

transcribe_file("words.csv")
Loading

0 comments on commit 541592c

Please sign in to comment.