Tehdyt toimenpiteet

sv-fdg

Connexor Machinese Syntax for Swedish

Description

sv-fdg analyses Swedish text according to a functional dependency grammar. The output is either in text format or a proprietary XML format. The Connexor parsers are only available on Hippu 1 and accessible only to Language Bank users (members of the group kieli).

Version and Copyright Information

version: Connexor FDG 3.8

copyright:

Machinese Syntax
Connexor FDG3 3.8 for Swedish www.connexor.com
(c) Conexor oy, 1997-2002 support@connexor.com

Usage

example 1

input:
[hippu1.csc.fi]$ echo "Jag har en hund. Hunden är min" | sv-fdg --text

output:
1       Jag     jag     subj>2  @NH PRON Pers SG NOM
2 har ha main>0 @MAIN V ACT IND PRES
3 en en det>4 @PREMOD DET Art Indef UTR SG NOM
4 hund hund obj>2 @NH N Indef UTR SG NOM
5 . .
6 <s> <s>
1 Hunden hund subj>2 @NH N Def UTR SG NOM
2 är vara @MAIN V ACT IND PRES
3 min min comp>2 @NH N Indef UTR SG NOM
4 . .
5 <s> <s>

example 2

input:

[hippu1.csc.fi]$ echo "Jag har en hund. Hunden är min" | sv-fdg

output:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE analysis SYSTEM "http://www.connexor.com/dtds/4.0/fdg3.dtd">
<analysis><sentence id="w1">
<token id="w2"> <text>Jag</text> <lemma>jag</lemma> <depend head="w3">subj</depend> <tags><syntax>@NH</syntax> <morpho>PRON Pers SG NOM</morpho></tags></token>
<token id="w3"> <text>har</text> <lemma>ha</lemma> <depend head="w1">main</depend> <tags><syntax>@MAIN</syntax> <morpho>V ACT IND PRES</morpho></tags></token>
<token id="w4"> <text>en</text> <lemma>en</lemma> <depend head="w5">det</depend> <tags><syntax>@PREMOD</syntax> <morpho>DET Art Indef UTR SG NOM</morpho></tags></token>
<token id="w5"> <text>hund</text> <lemma>hund</lemma> <depend head="w3">obj</depend> <tags><syntax>@NH</syntax> <morpho>N Indef UTR SG NOM</morpho></tags></token>
<token id="w6"> <text>.</text> <lemma>.</lemma> </token>
</sentence>
<sentence id="w7">
<token id="w8"> <text>Hunden</text> <lemma>hund</lemma> <depend head="w9">subj</depend> <tags><syntax>@NH</syntax> <morpho>N Def UTR SG NOM</morpho></tags></token>
<token id="w9"> <text>är</text> <lemma>vara</lemma> <tags><syntax>@MAIN</syntax> <morpho>V ACT IND PRES</morpho></tags></token>
<token id="w10"> <text>min</text> <lemma>min</lemma> <depend head="w9">comp</depend> <tags><syntax>@NH</syntax> <morpho>N Indef UTR SG NOM</morpho></tags></token>
<token id="w11"> <text>.</text> <lemma>.</lemma> </token>
</sentence>
</analysis>

Help, Manuals and Documentation


sv-fdg s included in the module kieli which is loaded as a default for all language research users. The module can be loaded manually with the command module load kieli.

help commands:
sv-fdg --help

further information:
usage: sv-fdg [-flags] files
-h -- print this page
-v -- print version
-k --keep-sgml -- let markup codes and comments pass through the parser
--xml -- print output as XML (only in FDG; default)
--text -- print output as text
--dtd -- print XML output with the DTD (only in FDG)
--tagset -- output starts with the tag descriptions (in XML; only in FDG)
--tagset-dtd -- with the DTD for the tag descriptions (only in FDG)
--custom=file -- apply a custom lexicon
--port=number -- start the server mode and listen to the given port
--message -- each message is analysed separately
Field of science:
Language research
Available:
  • hippu
License:
A