Difference between revisions of "Template:LangStats"

From Apertium
Jump to navigation Jump to search
Line 14: Line 14:
Average Coverage: ~{{#include | :Apertium-kaz/stats/average }}% <br />
Average Coverage: ~{{#include | :Apertium-kaz/stats/average }}% <br />
Average Coverage: ~{{:Apertium-{{{lang}}}/stats/average}}%
Average Coverage: ~{{:Apertium-{{{lang}}}/stats/average}}%

{{#set_param_default | corpus1 | None }}
{{#set_param_default | corpus2 | None }}
{{#set_param_default | corpus3 | None }}
{{#set_param_default | corpus4 | None }}
{{#set_param_default | corpus5 | None }}
{{#set_param_default | corpus6 | None }}
{{#set_param_default | corpus7 | None }}
{{#set_param_default | corpus8 | None }}
{{#set_param_default | corpus9 | None }}
{{#set_param_default | corpus10 | None }}

<table class="wikitable">
<tr><th>corpus</th><th>words</th><th>coverage</th></tr>
{{#if | {{#var | corpus1 | == | None }} |
<tr><td>corpus1</td>
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus1}}}-words}}</td></nowinter>
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus1}}}-coverage}}</td></tr></nowinter>
</table>
}}

Revision as of 00:52, 9 January 2013

{{#var | lang | @= | {{{lang}}} }} {{#var | corpora | @= | {{{corpora}}} }} {{#explode | "," | {{#var | corpora}} | {{#var | corporaArr}} }}

{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} ||

}}

corpuswordscoverage
{{#var | {{#var | corporaArr }} | {{#a}} }} ^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-words^] ^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-coverage^]

Average Coverage: ~{{#include | :Apertium-kaz/stats/average }}%
Average Coverage: ~{{:Apertium-{{{lang}}}/stats/average}}%

{{#set_param_default | corpus1 | None }} {{#set_param_default | corpus2 | None }} {{#set_param_default | corpus3 | None }} {{#set_param_default | corpus4 | None }} {{#set_param_default | corpus5 | None }} {{#set_param_default | corpus6 | None }} {{#set_param_default | corpus7 | None }} {{#set_param_default | corpus8 | None }} {{#set_param_default | corpus9 | None }} {{#set_param_default | corpus10 | None }}

{{#if | {{#var | corpus1 | == | None }} |

<nowinter></nowinter> <nowinter></nowinter>
corpuswordscoverage
corpus1

}}