google-code-export / dkpro-tc

Automatically exported from code.google.com/p/dkpro-tc
Other
1 stars 0 forks source link

Windows CRFsuite executable is not found #232

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
TC does not find the windows executable of CRFsuite

Probably its due to the attached '.exe' suffix to the executable. 

Original issue reported on code.google.com by Tobias.H...@gmail.com on 27 Feb 2015 at 10:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The trivial solution does unfortunately not work

I extended the loading routine with a platform check and attempted to load the 
crfsuite.exe file

return new 
RuntimeProvider("classpath:/de/tudarmstadt/ukp/dkpro/tc/crfsuite/").getFile(
                   "crfsuite.exe").getAbsolutePath();

It seems the RuntimeProvider class can't handle the '.' in the executable's 
name.

Does anyone have an idea how to solve this. Is there an alternative way to 
loading the binary or would I have to load the file manually by using the class 
loader, stream it as a resource and copy it into the temp folder directly?

Original comment by Tobias.H...@gmail.com on 3 Mar 2015 at 4:19

GoogleCodeExporter commented 9 years ago
How about just removing the ".exe" from the executable - that's how it is done 
in DKPro Core SFST and TGrep modules (but I think I never tested them on 
windows).

Original comment by richard.eckart on 3 Mar 2015 at 4:35

GoogleCodeExporter commented 9 years ago
This worked :) Thx.

Original comment by Tobias.H...@gmail.com on 4 Mar 2015 at 7:35