Skip to content
Snippets Groups Projects
Commit 48207b01 authored by Franck Dary's avatar Franck Dary
Browse files

Added config file

parent 0c6d9736
Branches
No related tags found
No related merge requests found
UD_ROOT=~/Downloads/ud/ud-treebanks-all/
include ../config
TOOLS=../../tools
UD_ROOT=~/Downloads/ud/ud-treebanks-all/
CONLL2TXT=$(TOOLS)/conll2text.py
MCD=conllu.mcd
......
#! /bin/bash
source config
function has_space {
[[ "$1" != "${1%[[:space:]]*}" ]] && return 0 || return 1
}
......@@ -11,7 +13,6 @@ function print_usage_and_exit {
LANG=UD_any
LANGPATH=$MACAON_DIR/$LANG
UD_ROOT=~/Downloads/ud/ud-treebanks-all/
MCD=$LANGPATH/data/conllu.mcd
KEYWORD=$1
TEMPLATENAME=$2
......
......@@ -22,8 +22,11 @@ form2pos = {}
int2form = {}
pos2int = {}
int2pos = {}
while(len(line) != 4) :
line = getLineAsList(fplm)
if len(line) == 0 :
exit(1)
while(len(line) == 4) :
form = line[0].strip()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment