2016-04-14 2 views
0

2つ以上の関連性スコアパラメータが使用されているようではありません。言い換えれば...私は本質的に、コンセプトとキーワードが関連性スコア=> 0.8の両方で宣伝している広告記事を取得したいと考えています。さらに、関連スコア=> 0.8の広告でタクソノミーを使用します。ここではクエリですが、私はパラメータを分けて読みやすくしています。私は関連性を持つ「enriched.url.concepts.concept.text =広告」は「0.8」よりも低いスコアおよび/または「enriched.url.taxonomy.taxonomy_.label =いる記事結果を取得していますAlchemyNews APIの複数の関連性スコアが正しく機能しない

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」より低い。たとえば、関連性スコアを必要とする3つのパラメータ(例:関連性スコア> = 0.8)をすべて満たしているため、「ユーザーの広告エクスペリエンスを最大限にする4つのヒント」という記事は優れています。

"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 
           } 

私は最終的にだけ返すようにクエリをしたいと思います:

"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 
           } 

しかし、これはどれも満たしていない場所の結果のほとんどは、どのように見えるかの例や関連性スコアのひとつであります3つの基準すべてを満たす最初の例のような結果です(例:関連性スコア> = 0.8)。誰かがこれを見てくださいでしたか?クエリに何か問題がありますか?ありがとう!

答えて

0

デニス: URLパラメータの処理にバグが発生したようです。このソリューションでは、パラメータをコンパクトに再フォーマットする必要がありますが、これはとにかく複雑なURLに適した形式です。

などです。代わりに、このようなあなたのパラメータを送信する:

q.enriched.url.concepts.concept.text=Advertising 
q.enriched.url.concepts.concept.relevance=>0.80 
q.enriched.url.taxonomy.taxonomy_.score=>0.8 
q.enriched.url.taxonomy.taxonomy_.label=business and industrial/advertising and marketing/advertising 
q.enriched.url.keywords.keyword.text=Advertising 
q.enriched.url.keywords.keyword.relevance=>0.80 

代わりグループは彼らなります

q.enriched.url.concepts.concept=|text=Advertising,relevance=>0.80| 
q.enriched.url.taxonomy.taxonomy_=|score=>0.8,label=business and industrial/advertising and marketing/advertising| 
q.enriched.url.keywords.keyword=|text=Advertising,relevance=>0.80| 

だから、この最後のURLは私の作品:

https://access.alchemyapi.com/calls/data/GetNews?q.enriched.url.concepts.concept=|text=Advertising,relevance=>0.80|&q.enriched.url.keywords.keyword=|text=advertising,relevance=>=.8|&q.enriched.url.taxonomy.taxonomy_=|label=business and industrial/advertising and marketing/advertising,score=>=.8|&return=enriched.url.url,enriched.url.title,enriched.url.concepts,enriched.url.taxonomy.taxonomy_,enriched.url.keywords&apikey=APIKEY&start=now-7d&end=now&outputMode=json&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

関連する問題