WCCL Relation is part of the Serel package. After installing the package you can use the serel-wccl-recognize command as follows:

serel-wccl-recognize -h

Usage: serel-wccl-recognize input file|directory -r rules file|directory [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -r RULES, --rules=RULES
                        single file or directory with .rewccl|.wccl files
  -o OUTPUT, --output=OUTPUT
                        output (console|directory|in-place|rewrite)
  -f FORMAT, --format=FORMAT
                        optput format (csv|ccl)
  -t TAGSET, --tagset=TAGSET
                        tagset
  -b, --batch           batch mode
  --rewrite             rewrite existing relation files
  -n, --only_new        do not rewrite old relations

You can test the command using the attached files:

  wget http://www.nlp.pwr.wroc.pl/ltg/attachments/article/63/00100511.xml
  wget http://www.nlp.pwr.wroc.pl/ltg/attachments/article/63/city_in_country.rewccl
  serel-wccl-recognize 00100511.xml -r city_in_country.rewccl

and you should see the following output:

  <!--?xml version="1.0" encoding="utf-8"?-->
  <relations>
	<rel name="location">
		<from chan="city_nam" sent="sent2">1</from>
		<to chan="country_nam" sent="sent2">1</to>
	</rel>
  </relations>

Attachments:

Download this file (00100511.xml)00100511.xml[a sample file from the KPWr 1.1 corpus annotated with proper names]26 Kb
Download this file (city_in_country.rewccl)city_in_country.rewccl[a sample WCCL Relation rule]0.1 Kb