我有一个MyClass类
class MyClass(object):
def __init__(self):
pass
def my_function(self, x):
# MyClass.my_function.__doc__ is not writable!
# Otherwise, I could just set it here.
Origin.func(self, x)
这个类从Origin借来
class Origin(object):
def func(obj, x):
我用狮身人面像训练过口袋狮身人面像。我面临的问题是,我不知道如何在我的代码中使用经过训练的模型。 我的第一个想法是替换pocketsphinx库中的当前模型,或者以某种方式包含经过训练的模型。 我搜索了很多,但我发现的大部分都是基于使用tensorflow进行训练或Google识别软件,而没有关于如何使用经过训练的模型的内容。 以下是代码如何工作的基本示例: import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
r.adjust_for_ambient_noise(s