HomePhabricator

Add translation based 'morelike' API for missing articles
2b29ed032134Unpublished

Authored by bmansurov on Oct 23 2018, 4:10 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add translation based 'morelike' API for missing articles

To find articles similar to 'kitob' but missing from uzwiki visit [1].
The results looks something like this:

[{"wikidata_id": "33057", "score": 0.0067295},
{"wikidata_id": "82", "score": 0.00572587}]

(Up to 10 recommendations are output.) The higher the score the more
similar the article is to 'kitob'.

See README.md for how to setup tables and load data into them.

[1] /uz.wikipedia.org/v1/article/morelike/translation/kitob.

Bug: T201192
Change-Id: I4428f1ebce13b7bd3e379db704007debff63b92b

Details

Committed
bmansurovOct 26 2018, 5:56 PM
Parents
rMSRA3c04fd3082bb: Add MySQL connection info
Branches
Unknown
Tags
Unknown
References
refs/changes/01/450601/4
ChangeId
I4428f1ebce13b7bd3e379db704007debff63b92b