3 ms·
Personally I'd make it not sample the same phrase within the same article title, or count subphrases as a different topic... In particular, there's an article w
by dylandrop 13y ago
Personally I'd make it not sample the same phrase within the same article title, or count subphrases as a different topic... In particular, there's an article with "China Mobile" mentioned twice, and it seems to be counted twice for that subject, as well as the subphrase "China" and "Mobile" being counted twice, each as a separate topic.
To show you what I mean:
{
"trends": [
{
"count": 2,
"phrase": "China"
},
{
"count": 2,
"phrase": "Hacker"
},
{
"count": 2,
"phrase": "Redis"
},
{
"count": 2,
"phrase": "Mobile"
},
{
"count": 2,
"phrase": "China Mobile"
},
{
"count": 2,
"phrase": "How To"
}
]
}
- karangoeluw 13y agoYou're right. I do plan on improving the call. This was one of my ideas, but then I was confused about which one to keep - one word or the two word topic.
- deleted 13y ago[deleted]
- dylandrop 13y agoPerhaps the one with a higher count, and if they both have the same count (in the case of the "China Mobile" phrase) keep the longer one. You might want to test different strategies against different sets of data and see which makes more sense.
- karangoeluw 13y agoThat's a good idea. I'll definitely work on making the API faster.