Difference between revisions of "Template:CorpusData"

From Apertium
Jump to navigation Jump to search
Line 1: Line 1:
{{#var | corpora | @= | {{{corpora}}} }}
{{#var | corpora | @= | {{{corpora}}} }}
{{#explode | ";" | {{#var | corpora}} | {{#var | corporaArr}} }}
{{#explode | ";" | {{#var | corpora}} | {{#var | corporaArr}} }}
{{#count | {{#var | corporaArr}} }}

== Over-all stats ==
== Over-all stats ==
* stems: <section begin=stems />{{{stems}}}<section end=stems />
* stems: <section begin=stems />{{{stems}}}<section end=stems />

Revision as of 05:33, 9 January 2013

{{#var | corpora | @= | {{{corpora}}} }} {{#explode | ";" | {{#var | corpora}} | {{#var | corporaArr}} }} {{#count | {{#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 }} }} }}

{{#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 }} }} }}

}} }}