Difference: HfstUserQuickStart (1 vs. 8)

Revision 82014-03-24 - ErikAxelson

Line: 1 to 1
 
META TOPICPARENT name="HfstHome"
Deleted:
<
<

Tool User Quick Start

Download and compile a lexicon

If you have installed hfst, download a Finnish lexicon text file from:

http://svn.gna.org/viewcvs/omorfi/branches/finntreebank/finntreebank.lexc?view=log

and use the commands mentioned in the beginning of the file:

hfst-lexc -v -f foma finntreebank.lexc -o finntreebank.inverted.hfst
hfst-invert -v
finntreebank.inverted.hfst -o finntreebank.debug.hfst
hfst-fst2fst -v finntreebank.debug.hfst -f olw -o finntreebank.hfst

You may also download some precompiled lexicons for various languages from

http://sourceforge.net/projects/hfst/files/morphological-transducers/

Use the lexicon

You can try out the Finnish lexicon with some word, e.g. "testi":

echo "testi" | hfst-lookup finntreebank.hfst

and you should get the line:

testi testi<N><sg><nom> 0.000000

Try a non-word

echo "xtesti" | hfst-lookup finntreebank.hfst

and you should get:

xtesti xtesti+? inf

Other lookup tools

There is a tool that does some useful things with capital letters, but may be slightly slower. You can feed it text and not only single words:

cat your-text | hfst-proc finntreebank.hfst

On the other hand, if you need speed, e.g. when you have millions of words to analyze, you may wish to feed your list of words to the lookup command:

cat your-list | hfst-lookup finntreebank.hfst

All commands have various parameters that will give you different formatting of the output. You get advice on those with the --help option, e.g.

hfst-lookup --help

-- KristerLinden - 2012-03-23


<--  
-->
 \ No newline at end of file
Added:
>
>
This page has been merged with HfstOverviewAndQuickStart.

Revision 72014-03-18 - ErikAxelson

Line: 1 to 1
 
META TOPICPARENT name="HfstHome"

Tool User Quick Start

Changed:
<
<

Download and compile a lexcion

>
>

Download and compile a lexicon

  If you have installed hfst, download a Finnish lexicon text file from:

Revision 62014-02-19 - ErikAxelson

Line: 1 to 1
 
META TOPICPARENT name="HfstHome"

Tool User Quick Start

Download and compile a lexcion

Line: 17 to 17
 You can try out the Finnish lexicon with some word, e.g. "testi":

echo "testi" | hfst-lookup finntreebank.hfst

and you should get the line:

testi testi<N><sg><nom> 0.000000

Try a non-word

echo "xtesti" | hfst-lookup finntreebank.hfst

and you should get:

xtesti xtesti+? inf

Other lookup tools

Changed:
<
<
There is a tool that does some useful things with capital letters, but may be slightly slower. You can feed it text and not only single words:

cat your-text | hfst-proc finntreebank.hfst

On the other hand, if you need speed, e.g. when you have millions of words to analyze, you may wish to feed your list of words to the optimized lookup command:

cat your-list | hfst-optimized-lookup finntreebank.hfst

All commands have various parameters that will give you different formatting of the output. You get advice on those with the --help option, e.g.

hfst-lookup --help

-- KristerLinden - 2012-03-23
>
>
There is a tool that does some useful things with capital letters, but may be slightly slower. You can feed it text and not only single words:

cat your-text | hfst-proc finntreebank.hfst

On the other hand, if you need speed, e.g. when you have millions of words to analyze, you may wish to feed your list of words to the lookup command:

cat your-list | hfst-lookup finntreebank.hfst

All commands have various parameters that will give you different formatting of the output. You get advice on those with the --help option, e.g.

hfst-lookup --help

-- KristerLinden - 2012-03-23
 

Revision 52012-12-04 - KristerLinden

Line: 1 to 1
 
META TOPICPARENT name="HfstHome"

Tool User Quick Start

Download and compile a lexcion

Line: 11 to 11
  You may also download some precompiled lexicons for various languages from
Changed:
<
<
https://sourceforge.net/projects/hfst/files/
>
>
http://sourceforge.net/projects/hfst/files/morphological-transducers/
 

Use the lexicon

You can try out the Finnish lexicon with some word, e.g. "testi":

echo "testi" | hfst-lookup finntreebank.hfst

and you should get the line:

testi testi<N><sg><nom> 0.000000

Try a non-word

echo "xtesti" | hfst-lookup finntreebank.hfst

and you should get:

xtesti xtesti+? inf

Revision 42012-04-02 - ErikAxelson

Line: 1 to 1
 
META TOPICPARENT name="HfstHome"

Tool User Quick Start

Download and compile a lexcion

Line: 18 to 18
 

Other lookup tools

There is a tool that does some useful things with capital letters, but may be slightly slower. You can feed it text and not only single words:

cat your-text | hfst-proc finntreebank.hfst

On the other hand, if you need speed, e.g. when you have millions of words to analyze, you may wish to feed your list of words to the optimized lookup command:

cat your-list | hfst-optimized-lookup finntreebank.hfst

All commands have various parameters that will give you different formatting of the output. You get advice on those with the --help option, e.g.

hfst-lookup --help

-- KristerLinden - 2012-03-23 \ No newline at end of file

Added:
>
>

<--  
-->

Revision 32012-03-26 - KristerLinden

Line: 1 to 1
 
META TOPICPARENT name="HfstHome"

Tool User Quick Start

Download and compile a lexcion

Line: 8 to 8
 http://svn.gna.org/viewcvs/omorfi/branches/finntreebank/finntreebank.lexc?view=log

and use the commands mentioned in the beginning of the file:

hfst-lexc -v -f foma finntreebank.lexc -o finntreebank.inverted.hfst
hfst-invert -v
finntreebank.inverted.hfst -o finntreebank.debug.hfst
hfst-fst2fst -v finntreebank.debug.hfst -f olw -o finntreebank.hfst

Added:
>
>
You may also download some precompiled lexicons for various languages from

https://sourceforge.net/projects/hfst/files/

 

Use the lexicon

You can try out the Finnish lexicon with some word, e.g. "testi":

echo "testi" | hfst-lookup finntreebank.hfst

and you should get the line:

testi testi<N><sg><nom> 0.000000

Try a non-word

echo "xtesti" | hfst-lookup finntreebank.hfst

and you should get:

xtesti xtesti+? inf

Revision 22012-03-23 - KristerLinden

Line: 1 to 1
 
META TOPICPARENT name="HfstHome"
Changed:
<
<
Download a Finnish lexicon text file from:
>
>

Tool User Quick Start

Download and compile a lexcion

 
Deleted:
<
<
http://svn.gna.org/viewcvs/omorfi/branches/finntreebank/finntreebank.lexc?view=log

to your user account and use the commands mentioned in the beginning of the file:

hfst-lexc -v -f foma finntreebank.lexc -o finntreebank.inverted.hfst
hfst-invert -v finntreebank.inverted.hfst -o finntreebank.debug.hfst
hfst-fst2fst -v finntreebank.debug.hfst -f olw -o finntreebank.hfst

You can try out the Finnish lexicon with some word, eg. "testi":

echo "testi" | hfst-lookup finntreebank.hfst

and you should get the line:

testi testi<N><sg><nom> 0.000000

Try a non-word

echo "xtesti" | hfst-lookup finntreebank.hfst

and you should get:

xtesti xtesti+? inf

There is a tool that does some useful things with capital letters, but may be slightly slower. You can feed it text and not single words:

cat your-text | hfst-proc finntreebank.hfst

On the other hand, if you need speed, e.g. when you have millions of words to analyze, you may wish feed your list of words to the command:

cat your-list | hfst-optimized-lookup finntreebank.hfst

All commands have various parameters that will give you different formatting of the output. You get advice on those with e.g.

hfst-lookup --help

-- KristerLinden - 2012-03-23
 \ No newline at end of file
Added:
>
>
If you have installed hfst, download a Finnish lexicon text file from:

http://svn.gna.org/viewcvs/omorfi/branches/finntreebank/finntreebank.lexc?view=log

and use the commands mentioned in the beginning of the file:

hfst-lexc -v -f foma finntreebank.lexc -o finntreebank.inverted.hfst
hfst-invert -v
finntreebank.inverted.hfst -o finntreebank.debug.hfst
hfst-fst2fst -v finntreebank.debug.hfst -f olw -o finntreebank.hfst

Use the lexicon

You can try out the Finnish lexicon with some word, e.g. "testi":

echo "testi" | hfst-lookup finntreebank.hfst

and you should get the line:

testi testi<N><sg><nom> 0.000000

Try a non-word

echo "xtesti" | hfst-lookup finntreebank.hfst

and you should get:

xtesti xtesti+? inf

Other lookup tools

There is a tool that does some useful things with capital letters, but may be slightly slower. You can feed it text and not only single words:

cat your-text | hfst-proc finntreebank.hfst

On the other hand, if you need speed, e.g. when you have millions of words to analyze, you may wish to feed your list of words to the optimized lookup command:

cat your-list | hfst-optimized-lookup finntreebank.hfst

All commands have various parameters that will give you different formatting of the output. You get advice on those with the --help option, e.g.

hfst-lookup --help

-- KristerLinden - 2012-03-23

Revision 12012-03-23 - KristerLinden

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="HfstHome"
Download a Finnish lexicon text file from:

http://svn.gna.org/viewcvs/omorfi/branches/finntreebank/finntreebank.lexc?view=log

to your user account and use the commands mentioned in the beginning of the file:

hfst-lexc -v -f foma finntreebank.lexc -o finntreebank.inverted.hfst
hfst-invert -v finntreebank.inverted.hfst -o finntreebank.debug.hfst
hfst-fst2fst -v finntreebank.debug.hfst -f olw -o finntreebank.hfst

You can try out the Finnish lexicon with some word, eg. "testi":

echo "testi" | hfst-lookup finntreebank.hfst

and you should get the line:

testi testi<N><sg><nom> 0.000000

Try a non-word

echo "xtesti" | hfst-lookup finntreebank.hfst

and you should get:

xtesti xtesti+? inf

There is a tool that does some useful things with capital letters, but may be slightly slower. You can feed it text and not single words:

cat your-text | hfst-proc finntreebank.hfst

On the other hand, if you need speed, e.g. when you have millions of words to analyze, you may wish feed your list of words to the command:

cat your-list | hfst-optimized-lookup finntreebank.hfst

All commands have various parameters that will give you different formatting of the output. You get advice on those with e.g.

hfst-lookup --help

-- KristerLinden - 2012-03-23

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback