##############################################################################
############## DanGram, Danish parsing system #################################
############## (c) Eckhard Bick & GrammarSoft Aps ############################
##############################################################################

File last updated: 2026

################################################################################

How to run the parser ....

in the current install folder:

### dependency trees
    (this is the standard version, the default without parameters)

	cat file.txt | /opt/dangram/dan.pl
	cat file.txt | /opt/dangram/dan.pl --dep (or -d)

	*** to convert dep format to MALT xml format: | /opt/dangram/bin/visldep2malt.pl | /opt/dangram/bin/extra2sem

	*** to convert MALT xml to TAB fields:
	... | visldep2malt.pl | egrep '<word' | perl -wnpe 's/^.*?"//; s/ *" .*?" */\t/g; s/"\/>//;' |more 

	*** to convert dep format to CoNLL format: | /opt/dangram/bin/visldep2conll.pl

### just morphological analysis and disambiguation

	cat file.txt | /opt/dangram/dan.pl --morph (or --morf or -m)

### constituent trees in VISL format

	cat file.txt | /opt/dangram/dan.pl --trees (or -t)

	*** in TIGER-xml format: | perl -wnpe 's/^=//;' | /opt/dangram/bin/visl2tiger.pl

### Framenet and semantic role annotation

	cat file.txt | /opt/dangram/dan.pl --role (or --frames or -r)

### spell and grammar checking

	cat file.txt | /opt/dangram/dan.pl --spell (or --stav or -s)

Please note that input should be plain text files in UTF-8. 

In the absence of punctuation, to force headlines or similar to be recognized as separate units of analysis, make sure a double newline is present (\n\n) to prevent heuristic separation.

Corpus or xml markup on separate <....> lines will be conserved. However, the expected markup is sentence or paragraph separation, headers etc.,not in-sentence pause or layout markup, for instance. The latter will only survive the standard annotation in-place, but be moved outside the sentence unit in the syntactic tree runs.
 

###############################################################################
##############################################################################

For tag definitions and other documentation, see http://beta.visl.sdu.dk

In particular: 
   http://beta.visl.sdu.dk/tagset_cg_general.html
   http://beta.visl.sdu.dk/semantic_prototypes_overview.pdf
   http://beta.visl.sdu.dk/visl/da/tools/comment_spelling_da.pdf

And:
   http://framenet.dk

Feedback and questions: eckhard.bick@mail.dk
