We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0b963c commit 71bd347Copy full SHA for 71bd347
NER.py
@@ -37,8 +37,8 @@ def from_audio(self, model=None):#returns a dictionary of names and labels from
37
text = recording.text_from_recording()
38
return self.from_text(text)
39
40
- def from_file(self,filename):#returns a dictionary of names and labels from file containing recorded audio
41
- recording = text_gen()
+ def from_file(self,filename, model=None):#returns a dictionary of names and labels from file containing recorded audio
+ recording = text_gen(model)
42
text = recording.text_from_file(filename)
43
44
0 commit comments