HomePhabricator

Add translation based 'morelike' API for missing articles
3ce7f55ac19fUnpublished

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": "Q33057", "score": 0.0067295},
{"wikidata_id": "Q82", "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
Depends-On: I33bddd51065242b72842b4a4a03012ac15b95760
Change-Id: I4428f1ebce13b7bd3e379db704007debff63b92b

Details

Committed
bmansurovNov 27 2018, 4:45 PM
Parents
rMSRA3c04fd3082bb: Add MySQL connection info
Branches
Unknown
Tags
Unknown
References
refs/changes/01/450601/7
ChangeId
I4428f1ebce13b7bd3e379db704007debff63b92b