Extension:ORES/zh

ORES扩展将来源于服务的数据合并至最近更改界面.

当前，ORES后端服务仅被配置为供Wikimedia的wiki使用. 将其配置为可供第三方MediaWiki安装使用是一份需要完成的有重大意义的工作.

安裝
当部署完毕后，需要运行维护脚本CheckModelVersions.php（在此之后也可以运行PopulateDatabase.php）



配置变量
以下是可供配置的变量及其默认值，附带少许简介.



ORES服务响应
ORES extension is merely more than an interface to the ORES service. The service returns a probability score of edits being damaging like this (API v1):

It means this edit is 10% likely to have caused damage. Note that 90% likely doesn't mean 9 out of ten cases will be vandalism. Choosing thresholds should be done via analysing recall (percentage of vandalism it can catch) or false positive rate. In ORES the "soft" threshold is when recall is 75% (meaning it will include 75% of all damaging edits) and the "hard" threshold is when recall is 90%. You can get the thresholds from model info (an example).



数据库架构
ORES extension introduces two new tables: ores_model and ores_classification. See the full database schema description.



计分
Once an edit is made the extension triggers a job to hit the service and store the results in the ores_classification table. It means it will not include scores for edits made before the deployment. In order to fill the database you can run the maintenance script PopulateDatabase.php. It will hits the service and keeps the score for the last 5,000 edits. You can run it several times if needed.

Once a model gets updated to a newer version CheckModelVersions.php maintenance script needs to be ran to update the ores_model table which will cause to scores stored in the ores_classification</tt> table become deprecated. You can clean these obsolete scores by running PurgeScoreCache.php</tt> maintenance script.

介面
The extension won't show anything when deployed but it will add itself as a beta feature ( is a dependency of this extension) and once it's enabled by the user it will use hooks in ChangesList (RecentChanges, Watchlist, and RelatedChanges) in both old and enhanced mode and highlights when score exceeds the given threshold.