Difference between revisions of "Template:CorpusData"
(35 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{# |
{{#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 }} |
|||
== Over-all stats == |
== Over-all stats == |
||
Line 7: | Line 15: | ||
== Corpora == |
== Corpora == |
||
⚫ | |||
{{#explode | "," | {{ |
{{#explode | "," | {{{corpus1}}} | {{#var | corpusCats}} }} |
||
{{#var | corpus | = | {{#var | {{#var | |
{{#var | corpus | @= | {{#var | {{#var | corporaCats }} | 0 }} }} |
||
{{#var | corpus }}: |
{{#var | corpus }}: |
||
* <winterprewiki><section begin={{#var | corpus }}-words />10<section end={{#var | corpus }}-words /></winterprewiki> |
|||
{{#for | {{#b @= 0}} || {{#b | < | {{#count | {{#var | corporaArrCats }} }} }} || {{#b ++}} || |
|||
{{#explode | "$" | {{#var | {{#var | corporaArrCats }} | {{#b}} }} | {{#var | tags}} }} |
|||
{{# |
{{#for | {{#a @= 1}} || {{#a | < | {{#count | {{#var | corporaCats }} }} }} || {{#a ++}} || |
||
⚫ | |||
⚫ | |||
{{#count | {{#tags}} }} |
|||
⚫ | |||
{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "words" | |
{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "words" | |
||
* words: <section begin={{#var | corpus }}-words >/{{#var | {{#var | tags }} | 1 }}<section end={{#var | corpus }}-words /> }} |
* words: <section begin={{#var | corpus }}-words >/{{#var | {{#var | tags }} | 1 }}<section end={{#var | corpus }}-words /> }} |
||
Line 25: | Line 41: | ||
{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "wikipage" | |
{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "wikipage" | |
||
* wikipage: <section begin={{#var | corpus }}-wikipage >/{{#var | {{#var | tags }} | 1 }}<section end={{#var | corpus }}-wikipage /> }} |
* wikipage: <section begin={{#var | corpus }}-wikipage >/{{#var | {{#var | tags }} | 1 }}<section end={{#var | corpus }}-wikipage /> }} |
||
⚫ | |||
}} |
Latest revision as of 12:38, 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 }}
Over-all stats[edit]
- stems: {{{stems}}}
- average: ~{{:Apertium-{{{lang}}}/stats/average}}%
Corpora[edit]
{{#explode | "," | {{{corpus1}}} | {{#var | corpusCats}} }} {{#var | corpus | @= | {{#var | {{#var | corporaCats }} | 0 }} }} {{#var | corpus }}:
- <winterprewiki>10</winterprewiki>
{{#for | {{#a @= 1}} || {{#a | < | {{#count | {{#var | corporaCats }} }} }} || {{#a ++}} ||
- {{#var | tag | = | {{#var | {{#var | corporaCats }} | {{#a}} }} }}
{{#explode | "$" | {{#var | tag}} | {{#var | tags}} }}
{{#count | {{#tags}} }}
}}
{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "words" |
- words: <section begin={{#var | corpus }}-words >/{{#var | {{#var | tags }} | 1 }} }}
{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "coverage" |
- coverage: <section begin={{#var | corpus }}-coverage >/{{#var | {{#var | tags }} | 1 }} }}
{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "asof" |
- as of: {{#var | {{#var | tags }} | 1 }} }}
{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "wikipage" |
- wikipage: <section begin={{#var | corpus }}-wikipage >/{{#var | {{#var | tags }} | 1 }} }}