EnglishFrenchSpanish

OnWorks favicon

yaz-icu - Online in the Cloud

Run yaz-icu in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command yaz-icu that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


yaz-icu - YAZ ICU utility

SYNOPSIS


yaz-icu [-c config] [-p opt] [-s] [-x] [infile]

DESCRIPTION


yaz-icu is utility which demonstrates the ICU chain module of yaz. (yaz/icu.h).

The utility can be used in two ways. It may read some text using an XML configuration for
configuring ICU and show text analysis. This mode is triggered by option -c which
specififies the configuration to be used. The input file is read from standard input or
from a file if infile is specified.

The utility may also show ICU information. This is triggered by option -p.

OPTIONS


-c config
Specifies the file containing ICU chain configuration which is XML based.

-p type
Specifies extra information to be printed about the ICU system. If type is c then ICU
converters are printed. If type is l available locales are printed. If type is t
available transliterators are printed.

-s
Specifies that output should include sort key as well. Note that sort key differs
between ICU versions.

-x
Specifies that output should be XML based rather than "text" based.

ICU CHAIN CONFIGURATION


The ICU chain configuration speicifies one or more rules to convert text data into tokens.
The configuration format is XML based.

The toplevel element must be named icu_chain. The icu_chain element has one required
attribute locale which specifies the ICU locale to be used in the conversion steps.

The icu_chain element must include elements where each element specifies a conversion
step. The conversion is performed in the order in which the conversion steps are
specified. Each conversion element takes one attribute: rule which serves as argument to
the conversion step.

The following conversion elements are available:

casemap
Converts case and rule specifies how:

l
Lowercase using ICU function u_strToLower.

u
Upper case using ICU function u_strToUpper.

t
To title using UCU function u_strToTitle.

f
Fold case using ICU function u_strFoldCase.

display
This is a meta step which specifies that a term/token is to be displayed. This term is
retrieved in an application using function icu_chain_token_display (yaz/icu.h).

transform
Specifies an ICU transform rule using a transliterator Identifier. The rule attribute
is the transliterator Identifier. See ICU Transforms[1] for more information.

transliterate
Specifies a rule-based transliterator. The rule attribute is the custom transformation
rule to be used. See ICU Transforms[1] for more information.

tokenize
Breaks / tokenizes a string into components using ICU functions ubrk_open,
ubrk_setText, .. . The rule is one of:

l
Line. ICU: UBRK_LINE.

s
Sentence. ICU: UBRK_SENTENCE.

w
Word. ICU: UBRK_WORD.

c
Character. ICU: UBRK_CHARACTER.

t
Title. ICU: UBRK_TITLE.

EXAMPLES


The following command analyzes text in file text using ICU chain configuration chain.xml:

cat text | yaz-icu -c chain.xml

The chain.xml might look as follows:

<icu_chain locale="en">
<transform rule="[:Control:] Any-Remove"/>
<tokenize rule="w"/>
<transform rule="[[:WhiteSpace:][:Punctuation:]] Remove"/>
<transliterate rule="xy > z"/>
<display/>
<casemap rule="l"/>
</icu_chain>

Use yaz-icu online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 2
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 3
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 4
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 5
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    foundations...
    Download Dolibarr ERP - CRM
  • 6
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    tables...
    Download SQuirreL SQL Client
  • More »

Linux commands

Ad