giellatekno / fst-web-interface

Frontend for language tools
https://giellatekno.github.io/fst-web-interface
0 stars 0 forks source link

dependency tool: korp.cg3 #5

Open Phaqui opened 1 year ago

Phaqui commented 1 year ago

For the dependency tool (specified in api/src/toolspecs/dependency.py), a step is reliant on a file src/cg3/korp.cg3. In the old conf.pl script, there is a clause that tells to treat the languages fao, sma, sme, smj, and nob differently for the dependency tool (they include this extra step). Where is this file? Can I compile it? I could not find anything mentioning "korp" when running ./configure --help.

Trondtr commented 1 year ago

the file korp.cg3 is in ../shared-smi/src/cg3/ The makefile should get it. What language are you trying to compile? The korp.cg3 is a specialised version of src/cg3/functions.cg3, for many languages you may use that one instead. The local routine should be specified in the makefile: src/cg3/Makefile.am, cf. that file for the different languages, under


#### Add language-specific sources here: ####
GT_CG_LOCAL_SRCS=semanticroles.cg3 valency.cg3 korp.cg3 semsets.cg3
Phaqui commented 1 year ago

Specifically src/cg3/korp.cg3 is not present in lang-nob. The setting GT_CG_LOCAL_SRCS is empty in lang-nob/src/cg3/Makefile.am.

Trondtr commented 1 year ago

So, using functions.cg3 instead will work (or even making a symlink, but we should have routines making it possible both using and not using korp.cg3 in the different languages.