0

複数のパラメーターを使用すると、関連性スコア パラメーターが機能していないようです。言い換えれば...私は基本的に、コンセプトとキーワードが両方の関連性スコア =>0.8 の広告である広告記事を取得したいと考えています。さらに、関連性スコア =>0.8 の広告で分類法を使用します。これがクエリです。読みやすいようにパラメータを分けました。

https://access.alchemyapi.com/calls/data/GetNews?apikey=APIKEY&start=now-7d&end=now&outputMode=json&return=enriched.url.url,enriched.url.title,enriched.url.taxonomy,enriched.url.keywords,enriched.url.concepts
&q.enriched.url.concepts.concept.text=advertising
&q.enriched.url.concepts.concept.relevance=>0.8
&q.enriched.url.taxonomy.taxonomy_.label=business and industrial/advertising and marketing/advertising
&q.enriched.url.taxonomy.taxonomy_.score=>0.8
&q.enriched.url.keywords.keyword.text=advertising
&q.enriched.url.keywords.keyword.relevance=>0.8
&q.enriched.url.title=O-[jobs^job]
&q.enriched.url.title=O-[careers^career]
&q.enriched.url.title=O-[cv^resume]
&dedup=1
&rank=high^medium

関連性スコアが「0.8」未満の「enriched.url.concepts.concept.text=advertising」および/または「enriched.url.taxonomy.taxonomy_.label=ビジネスおよび産業/広告およびマーケティング」を含む記事の結果を取得しています/advertising」の関連性スコアが「0.8」より低い。たとえば、結果の記事「ユーザーの広告エクスペリエンスを最大化するための 4 つのヒント」は、関連性スコアを必要とする 3 つのパラメーターすべてを満たしているため (たとえば、関連性スコア >=0.8)、優れています。

"concepts": [
                                    "relevance": 0.974825978,
                                    "text": "Advertising"
                                },
"keywords": [
                                {
                                    "knowledgeGraph": {
                                        "typeHierarchy": "/services/mobile advertising"
                                    },
                                    "relevance": 0.910649002,
                                    "sentiment": {
                                        "mixed": 0,
                                        "score": 0,
                                        "type": "neutral"
                                    },
                                    "text": "mobile advertising"
                                }
"taxonomy": [
                                {
                                    "confident": "",
                                    "label": "/business and industrial/advertising and marketing/advertising",
                                    "score": 0.991141975
                                }

ただし、これはほとんどの結果がどのように見えるかの例であり、関連性スコアのいずれにも一致しないか、1 つしか一致しません。

"concepts": [{
                                    "relevance": 0.447964013,
                                    "text": "Advertising"
                                }
"keywords": [{
                                    "knowledgeGraph": {
                                        "typeHierarchy": "/people/users/third parties/advertisers"
                                    },
                                    "relevance": 0.623048007,
                                    "sentiment": {
                                        "mixed": 1,
                                        "score": -0.291121989,
                                        "type": "negative"
                                    },
                                    "text": "advertisers"
                                }
"taxonomy": [
                                 {
                                    "confident": "no",
                                    "label": "/business and industrial/advertising and marketing/advertising",
                                    "score": 0.345863998
                                }

最終的には、最初の例のように 3 つの基準をすべて満たす (関連性スコア > = 0.8 など) クエリのみが返されるようにしたいと考えています。誰かがこれを調べてもらえますか?クエリに何か問題がありますか? ありがとう!

4

1 に答える 1