Difference between revisions of "Template:CorpusData"
Line 8: | Line 8: | ||
== Corpora == |
== Corpora == |
||
{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} || |
{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} || |
||
⚫ | |||
{{#explode | "," | {{#var | {{#var | corporaArr }} | {{#a}} }} | {{#var | corporaArrCats}} }} |
{{#explode | "," | {{#var | {{#var | corporaArr }} | {{#a}} }} | {{#var | corporaArrCats}} }} |
||
{{#var | corpus | = | {{#var | {{#var | corporaArrCats }} | 0 }} }} |
{{#var | corpus | = | {{#var | {{#var | corporaArrCats }} | 0 }} }} |
||
Line 13: | Line 14: | ||
{{#for | {{#b @= 0}} || {{#b | < | {{#count | {{#var | corporaArrCats }} }} }} || {{#b ++}} || |
{{#for | {{#b @= 0}} || {{#b | < | {{#count | {{#var | corporaArrCats }} }} }} || {{#b ++}} || |
||
{{#explode | "$" | {{#var | {{#var | corporaArrCats }} | {{#b}} }} | {{#var | tags}} }} |
{{#explode | "$" | {{#var | {{#var | corporaArrCats }} | {{#b}} }} | {{#var | 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 /> }} |
Revision as of 05:36, 9 January 2013
{{#var | corpora | @= | {{{corpora}}} }} {{#explode | ";" | {{#var | corpora}} | {{#var | corporaArr}} }}
Over-all stats
- stems: {{{stems}}}
- average: ~{{:Apertium-{{{lang}}}/stats/average}}%
Corpora
{{#for | {{#a @= 0}} || {{#a | < | {{#count | {{#var | corporaArr }} }} }} || {{#a ++}} || {{#var | dummy | = | hi}} {{#explode | "," | {{#var | {{#var | corporaArr }} | {{#a}} }} | {{#var | corporaArrCats}} }} {{#var | corpus | = | {{#var | {{#var | corporaArrCats }} | 0 }} }} {{#var | corpus }}: {{#for | {{#b @= 0}} || {{#b | < | {{#count | {{#var | corporaArrCats }} }} }} || {{#b ++}} || {{#explode | "$" | {{#var | {{#var | corporaArrCats }} | {{#b}} }} | {{#var | 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 }} }}
}} }}