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 | corpus6 | = | {{{corpus6}}} }}
{{#var | corpus7 | = | {{{corpus7}}} }}
{{#var | lang | @= | {{{lang}}} }}
{{#var | lang | @= | {{{lang}}} }}


Line 31: Line 29:
<tr><th>corpus</th><th>words</th><th>coverage</th></tr>
<tr><th>corpus</th><th>words</th><th>coverage</th></tr>


{{#if | {{#var | {{{corpus1}}} | != | None }} |
{{#ifneq | {{{corpus1}}} | None |
<tr><td>{{{corpus1}}}</td>
<tr><td>{{{corpus1}}}</td>
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus1}}}-words}}</td>
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus1}}}-words}}</td>
Line 37: Line 35:
}}
}}


{{#if | {{#var | {{{corpus2}}} | != | None }} |
{{#ifneq | {{{corpus2}}} | None |
<tr><td>{{{corpus2}}}</td>
<tr><td>{{{corpus2}}}</td>
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus2}}}-words}}</td></nowinter>
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus2}}}-words}}</td></nowinter>
Line 43: Line 41:
}}
}}


{{#if | {{#var | {{{corpus3}}} | != | None }} |
{{#ifneq | {{{corpus3}}} | None |
<tr><td>{{{corpus3}}}</td>
<tr><td>{{{corpus3}}}</td>
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus3}}}-words}}</td></nowinter>
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus3}}}-words}}</td></nowinter>
Line 49: Line 47:
}}
}}


{{#if | {{#var | {{{corpus4}}} | != | None }} |
{{#ifneq | {{{corpus4}}} | None |
<tr><td>{{{corpus4}}}</td>
<tr><td>{{{corpus4}}}</td>
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus4}}}-words}}</td></nowinter>
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus4}}}-words}}</td></nowinter>
Line 55: Line 53:
}}
}}


{{#if | {{#var | {{{corpus5}}} | != | None }} |
{{#ifneq | {{{corpus5}}} | None |
<tr><td>{{{corpus5}}}</td>
<tr><td>{{{corpus5}}}</td>
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus5}}}-words}}</td>
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus5}}}-words}}</td>
Line 65: Line 63:
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus6}}}-words}}</td>
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus6}}}-words}}</td>
<td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus6}}}-coverage}}%</td></tr>
<td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus6}}}-coverage}}%</td></tr>
}}

{{#ifneq | {{{corpus7}}} | None |
<tr><td>{{{corpus7}}}</td>
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus7}}}-words}}</td>
<td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus7}}}-coverage}}%</td></tr>
}}

{{#ifneq | {{{corpus8}}} | None |
<tr><td>{{{corpus8}}}</td>
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus8}}}-words}}</td>
<td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus8}}}-coverage}}%</td></tr>
}}

{{#ifneq | {{{corpus9}}} | None |
<tr><td>{{{corpus9}}}</td>
<td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus9}}}-words}}</td>
<td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus9}}}-coverage}}%</td></tr>
}}
}}
</table>
</table>

Revision as of 01:20, 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 }} {{#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}}%

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

}}

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

<nowinter></nowinter> <nowinter></nowinter>

}}

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

<nowinter></nowinter> <nowinter></nowinter>

}}

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

<nowinter></nowinter> <nowinter></nowinter>

}}

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

}}

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

}}

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

}}

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

}}

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

}}

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