Microsoft Azure - 如何定位 ML 模型
我编写 Python 已经很多年了,并且处于相当不错的水平。我从未正式学习过计算机科学。
我一直在阅读有关 Azure 认知服务的信息并将其用于我的一个应用程序,该应用程序使用 Microsoft Azure 认知服务的文本分析服务进行基于文本输入的语言检测。据我了解,微软(MS)已经训练了一些强大的机器学习模型,用于其认知服务包。
我知道所有代码都是开源的:
我能够做到通过 SDK 文档和存储库进行一些基本导航来解决我的目的。但是,我想了解,如果 Microsoft 确实将 ML 模型用于文本分析服务或任何其他认知服务,则实际模型保存在存储库中的位置。
在浏览存储库时,我希望找到对某种序列化文件(例如 .pkl、.yaml)的调用,该文件加载模型并进行预测/返回输出。然而,在我的一生中,花了几个小时后,我迷失在这个巨大的仓库中,没有任何结果。
为了方便起见,我有兴趣了解Microsoft 在存储库中将实际的 ML 模型保存在何处,并提供了对任何认知服务的示例引用。如果情况并非如此,那么代码中如何使用这些模型来返回预测/响应?
I have been writing Python for a number of years and I'm at a fairly decent level. I have never formally studied Computer Science.
I have been reading about and using Azure Cognitive Services for one of my applications which uses the Microsoft Azure Cognitive Service' textanalytics service for Language Detection based on text input. As per my understanding Microsoft (MS) has trained some powerful ML models that are used for their cognitive services package.
I understand that all the code is open source:
And I am able to do some basic navigation through the SDK documentation and repo to solve my purpose. However, I want to understand that if Microsoft does use a ML model for the text analytics service or any other cognitive service where is the actual model saved in the repository.
While navigating the repository I was expecting to find a call to some sort of serialized file (eg .pkl, .yaml) which loads the model and makes a prediction / returns an output. However, for the life of me, after spending a couple of hours I am lost in this massive repo with no results.
To make it easier, I'd be interested to know where Microsoft saves the actual ML models in the repo with an example reference to any of the cognitive services. If that is not the case, how are these models used within the code to return predictions / responses?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我可以更准确地回答您的问题,Azure 语言认知服务是一项基于云的服务,它提供用于理解和分析文本的自然语言处理功能并为我们提供输出。
在此 Microsoft 文档中,您可以找到
使用 Python 创建 TEXT ANALYTICS 客户端库的示例代码
。有关详细信息,请参阅此博客创建文本分析的 Azure 课程使用 Azure 门户 & MS DOC: 部署用于认知搜索的模型
If i can answer more precisely to your ask , Azure Cognitive Service for Language is a cloud-based service which provides Natural Language Processing features for understanding and analyzing text and gives us output.
From this Microsoft Documentation you can find
the sample code to create TEXT ANALYTICS client library using Python
.For more information please refer this BLOG Azure lesson to create text analytics using Azure Portal & MS DOC: Deploy a model for use with Cognitive Search