Google Cloud Natural Language API-如何计算文件大小? [英] Google Cloud Natural Language API - How is document magnitude calculated?

查看:108
本文介绍了Google Cloud Natural Language API-如何计算文件大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Google Cloud Natural Language API,需要了解如何计算整个文档(由几个句子组成)的大小值吗?

I am currently working with the Google Cloud Natural Language API and need to know how the magnitude value for a whole document (consisting of several sentences) is calculated?

对于文档情感分数,取每个句子的分数平均值.对于文档幅度,我会假设它是通过取每个句子的各个幅度值的绝对和来计算的.但是在测试了某些段落之后,很显然这不是计算它的正确方法.谁能向我解释一下?

For the document sentiment score the average of the scores for each sentence is taken. For the document magnitude I would have assumed that it's calculated by taking the absolute sum of the individual magnitude values for each sentence. But after testing some paragraphs it's clear that it's not the correct way to calculate it. Would anyone be able to explain this to me?

非常感谢您的帮助!

推荐答案

它被计算为所有句子的大小之和.您会在测试中提供一个不正确的示例吗?

It is calculated as as the sum of the magnitudes from all sentences. Would you provide an example in your tests where this isn't correct?

这篇关于Google Cloud Natural Language API-如何计算文件大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆