Difference between revisions of "Template:LangStats"

From Apertium
Jump to navigation Jump to search
Line 9: Line 9:
{{#set_param_default | corpus9 | None }}
{{#set_param_default | corpus9 | None }}
{{#set_param_default | corpus10 | None }}
{{#set_param_default | corpus10 | None }}
{{#var | lang | @= | {{{lang}}} }}

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

<table class="wikitable">
<tr><th>corpus</th><th>words</th><th>coverage</th></tr>
{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} ||
<tr><td>{{#var | {{#var | corporaArr }} | {{#a}} }}</td>
<td>^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-words^]</td>
<td>^[#lst:Apertium-{{#var | lang }}/stats^!{{#var | {{#var | corporaArr }} | {{#a}} }}-coverage^]</td></tr>
}}
</table>


* Number of stems: {{#lst:Apertium-{{{lang}}}/stats|stems}}
* Number of stems: {{#lst:Apertium-{{{lang}}}/stats|stems}}

Revision as of 01:32, 9 January 2013

{{#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 }}

  • Number of stems:
  • Coverage: ~{{:Apertium-{{{lang}}}/stats/average}}%

{{#ifneq | {{{corpus1}}} | None |

}}

{{#ifneq | {{{corpus2}}} | None |

}}

{{#ifneq | {{{corpus3}}} | None |

}}

{{#ifneq | {{{corpus4}}} | None |

}}

{{#ifneq | {{{corpus5}}} | None |

}}

{{#ifneq | {{{corpus6}}} | None |

}}

{{#ifneq | {{{corpus7}}} | None |

}}

{{#ifneq | {{{corpus8}}} | None |

}}

{{#ifneq | {{{corpus9}}} | None |

}}

{{#ifneq | {{{corpus10}}} | None |

}}

corpuswordscoverage
{{{corpus1}}} ~%
{{{corpus2}}} ~%
{{{corpus3}}} ~%
{{{corpus4}}} ~%
{{{corpus5}}} ~%
{{{corpus6}}} ~%
{{{corpus7}}} ~%
{{{corpus8}}} ~%
{{{corpus9}}} ~%
{{{corpus10}}} ~%