Skip to content

Commit 71bd347

Browse files
committedFeb 24, 2021
adding option to choose model for ASR
1 parent b0b963c commit 71bd347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎NER.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def from_audio(self, model=None):#returns a dictionary of names and labels from
3737
text = recording.text_from_recording()
3838
return self.from_text(text)
3939

40-
def from_file(self,filename):#returns a dictionary of names and labels from file containing recorded audio
41-
recording = text_gen()
40+
def from_file(self,filename, model=None):#returns a dictionary of names and labels from file containing recorded audio
41+
recording = text_gen(model)
4242
text = recording.text_from_file(filename)
4343
return self.from_text(text)
4444

0 commit comments

Comments
 (0)
Please sign in to comment.