Difference between revisions of "Template:LangStats"
Line 32: | Line 32: | ||
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus1}}}-words}}</td></nowinter> |
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus1}}}-words}}</td></nowinter> |
||
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus1}}}-coverage}}%</td></tr></nowinter> |
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus1}}}-coverage}}%</td></tr></nowinter> |
||
}} |
|||
{{#if | {{#var | corpus2 | != | None }} | |
{{#if | {{#var | 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> |
||
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus2}}}-coverage}}%</td></tr></nowinter> |
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus2}}}-coverage}}%</td></tr></nowinter> |
||
}} |
|||
{{#if | {{#var | corpus1 | != | None }} | |
{{#if | {{#var | corpus1 | != | 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> |
||
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus3}}}-coverage}}%</td></tr></nowinter> |
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus3}}}-coverage}}%</td></tr></nowinter> |
||
}} |
|||
{{#if | {{#var | |
{{#if | {{#var | 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> |
||
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus4}}}-coverage}}%</td></tr></nowinter> |
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus4}}}-coverage}}%</td></tr></nowinter> |
||
}} |
|||
{{#if | {{#var | |
{{#if | {{#var | corpus5 | != | None }} | |
||
<tr><td>{{{corpus5}}}</td> |
<tr><td>{{{corpus5}}}</td> |
||
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus5}}}-words}}</td></nowinter> |
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus5}}}-words}}</td></nowinter> |
||
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus5}}}-coverage}}%</td></tr></nowinter> |
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus5}}}-coverage}}%</td></tr></nowinter> |
||
}} |
|||
{{#if | {{#var | |
{{#if | {{#var | corpus6 | != | None }} | |
||
<tr><td>{{{corpus6}}}</td> |
<tr><td>{{{corpus6}}}</td> |
||
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus6}}}-words}}</td></nowinter> |
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus6}}}-words}}</td></nowinter> |
||
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus6}}}-coverage}}%</td></tr></nowinter> |
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus6}}}-coverage}}%</td></tr></nowinter> |
||
}} |
|||
{{#if | {{#var | corpus1 | != | None }} | |
{{#if | {{#var | corpus1 | != | None }} | |
||
<tr><td>{{{corpus7}}}</td> |
<tr><td>{{{corpus7}}}</td> |
||
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus7}}}-words}}</td></nowinter> |
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus7}}}-words}}</td></nowinter> |
||
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus7}}}-coverage}}%</td></tr></nowinter> |
<nowinter><td>~{{#lst:Apertium-{{{lang}}}/stats|{{{corpus7}}}-coverage}}%</td></tr></nowinter> |
||
}} |
|||
{{#if | {{#var | |
{{#if | {{#var | corpus8 | != | None }} | |
||
<tr><td>{{{corpus8}}}</td> |
<tr><td>{{{corpus8}}}</td> |
||
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus8}}}-words}}</td></nowinter> |
<nowinter><td>{{#lst:Apertium-{{{lang}}}/stats|{{{corpus8}}}-words}}</td></nowinter> |
Revision as of 00:56, 9 January 2013
{{#var | lang | @= | {{{lang}}} }} {{#var | corpora | @= | {{{corpora}}} }} {{#explode | "," | {{#var | corpora}} | {{#var | corporaArr}} }}
{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} ||
}}
corpus | words | coverage |
---|---|---|
{{#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>}} {{#if | {{#var | corpus2 | != | None }} |
<nowinter></nowinter> <nowinter></nowinter>}} {{#if | {{#var | corpus1 | != | None }} |
<nowinter></nowinter> <nowinter></nowinter>}} {{#if | {{#var | corpus4 | != | None }} |
<nowinter></nowinter> <nowinter></nowinter>}} {{#if | {{#var | corpus5 | != | None }} |
<nowinter></nowinter> <nowinter></nowinter>}} {{#if | {{#var | corpus6 | != | None }} |
<nowinter></nowinter> <nowinter></nowinter>}} {{#if | {{#var | corpus1 | != | None }} |
<nowinter></nowinter> <nowinter></nowinter>}} {{#if | {{#var | corpus8 | != | None }} |
<nowinter></nowinter> <nowinter></nowinter>corpus | words | coverage |
---|---|---|
{{{corpus1}}} | ~% | |
{{{corpus2}}} | ~% | |
{{{corpus3}}} | ~% | |
{{{corpus4}}} | ~% | |
{{{corpus5}}} | ~% | |
{{{corpus6}}} | ~% | |
{{{corpus7}}} | ~% | |
{{{corpus8}}} | ~% |
}}