Difference between revisions of "Template:CorpusData"

From Apertium
Jump to navigation Jump to search
Line 22: Line 22:


{{#for | {{#a @= 1}} || {{#a | < | {{#count | {{#var | corporaCats }} }} }} || {{#a ++}} ||
{{#for | {{#a @= 1}} || {{#a | < | {{#count | {{#var | corporaCats }} }} }} || {{#a ++}} ||
{{#var | tag | @= | {{#var | {{#var | corporaCats }} | {{#a}} }}

{{#explode | "$" | {{#var | {{#var | corporaCats }} | {{#a}} }} | {{#var | tags}} }}
{{#explode | "$" | {{#var | tag}} | {{#var | tags}} }}


{{#count | {{#tags}} }}
{{#count | {{#tags}} }}


}} }}
}}


{{#ifeq | {{#var | {{#var | tags }} | 0 }} | "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 12:21, 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

  • stems: {{{stems}}}
  • average: ~{{:Apertium-{{{lang}}}/stats/average}}%

Corpora

{{#explode | "," | {{{corpus1}}} | {{#var | corpusCats}} }} {{#var | corpus | @= | {{#var | {{#var | corporaCats }} | 0 }} }} {{#var | corpus }}:


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