codeaudit / dkpro-core-asl

Automatically exported from code.google.com/p/dkpro-core-asl
0 stars 0 forks source link

Get SFST working on Windows #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The SFST module doesn't work on windows yet.

Original issue reported on code.google.com by richard.eckart on 19 May 2013 at 9:15

GoogleCodeExporter commented 9 years ago
Sven:

Hi,

today I had some time to test your approach to get SFST work on windows.
After a few changes in my POM file (get the lasted Snapshots), the 
SFSTAnnotator worked well.
So it does not require any changes to RuntimeProvider to be performed.

Now some instructions to compile SFST on windows:
1) Cygwin:
1a) Install Cygwin and download SFST
1b) go to the source dir of SFST and type in the command line of  Cygwin "make 
fst-infl" (the makefile is already adjusted for  Cygwin)
1c) maybe you have to download some libraries - but the gui of  Cygwin will 
help.

2)mingw:
2a) I tried it on my Debian Wheezy with kernel 3.2.0 and installed "gcc-mingw32"
2b) I changed the makefile from line 23 to 46 ( the new makefile is attached)
3c) and started the command "make fst-infl" in the source directory of SFST

Maybe there are better approaches, but these two worked for me.

I know that there are some Todo's in SFSTAnnotator, but maybe it is possible to 
put "begin" and "end" to the generated Morphemes (line 180).
If you put the fst-infl also online for windows (maven snapshots) , it would be 
great if there is an announcement (maybe on this thread).

Best regards
Sven

Original comment by richard.eckart on 19 May 2013 at 9:17

Attachments:

GoogleCodeExporter commented 9 years ago
Sven (https://groups.google.com/d/msg/dkpro-core-user/5h_IuaOJTZU/cdBPURqHuG0J)

Today, I get SFST compiled for Windows in two variants:
One with cygwin and one with mingw.
I recommend to use the one with mingw, because it doesn't need any dll and is 
smaller.

If it is possible to include one of these executables in your distribution, 
please let me know, so that I can use SFST also on windows.

Best regards
Sven

Original comment by richard.eckart on 19 May 2013 at 9:20

GoogleCodeExporter commented 9 years ago
Updated binaries available via UKP-OSS repo:

<dependency>
  <groupId>de.tudarmstadt.ukp.dkpro.core</groupId>
  <artifactId>de.tudarmstadt.ukp.dkpro.core.sfst-bin</artifactId>
  <version>20120111.1</version>
</dependency>

I hope this works, I didn't test.

Original comment by richard.eckart on 20 May 2013 at 9:16