Difference between revisions of "Template:CorpusData"

From Apertium
Jump to navigation Jump to search
Line 9: Line 9:
{{#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}} }}
{{#count | {{#var | corporaArrCats}} }}
{{#var | corpus | = | {{#var | {{#var | corporaArrCats }} | 0 }} }}
{{#var | corpus | = | {{#var | {{#var | corporaArrCats }} | 0 }} }}
{{#var | corpus }}:
{{#var | corpus }}:
Line 17: Line 16:
{{#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 /> }}

{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "coverage" |
* coverage: <section begin={{#var | corpus }}-coverage >/{{#var | {{#var | tags }} | 1 }} }}<section end={{#var | corpus }}-coverage /> }}

{{#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 }} }}<section end={{#var | corpus }}-wikipage /> }}


}}
}}

Revision as of 05:34, 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 ++}} || {{#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 }} }} }}

}} }}