Revision: 8284
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8284&view=rev
Author:   dominikoeo
Date:     2012-11-03 07:26:10 +0000 (Sat, 03 Nov 2012)
Log Message:
-----------
[fr] added script to create the French POS tag dictionary.

Added Paths:
-----------
    
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/fr/create-lexicon.sh

Added: 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/fr/create-lexicon.sh
===================================================================
--- 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/fr/create-lexicon.sh
                               (rev 0)
+++ 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/fr/create-lexicon.sh
       2012-11-03 07:26:10 UTC (rev 8284)
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# How to create the POS tag 'french.dict' dictionary:
+#
+# 1) Download morfologik-stemming-1.4.0.zip from
+#    
http://sourceforge.net/projects/morfologik/files/morfologik-stemming/1.4.0/
+#    $ unzip morfologik-stemming-1.4.0.zip
+#    This creates morfologik-stemming-nodict-1.4.0.jar
+# 4) Run the script:
+#    $ ./create-lexicon.pl
+#    This creates the dictionary 'french.dict'.
+#
+# Author: Dominique Pelle <[email protected]>
+#
+
+INPUT=lexique-dicollecte-fr-v4.6
+
+if [ ! -f $INPUT.txt ]; then
+  wget http://www.dicollecte.org/download/fr/$INPUT.zip
+  unzip $INPUT.zip
+fi
+
+chmod a+x DL2LT.py
+vim  -c 'set fileformat=unix' -c 1s/python3.1/python3 -c wq DL2LT.py
+./DL2LT.py $INPUT.txt
+
+java -jar morfologik-stemming-nodict-1.4.0.jar tab2morph \
+     -i $INPUT.txt.LT.txt \
+     -o output.txt
+java -jar morfologik-stemming-nodict-1.4.0.jar fsa_build \
+     -i output.txt \
+     -o french.dict


Property changes on: 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/fr/create-lexicon.sh
___________________________________________________________________
Added: svn:executable
   + *

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to