lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1533358 - /lucene/dev/branches/lucene4956/lucene/analysis/arirang/src/java/org/apache/lucene/analysis/ko/dic/DictionaryUtil.java
Date Fri, 18 Oct 2013 08:24:09 GMT
Author: uschindler
Date: Fri Oct 18 08:24:08 2013
New Revision: 1533358

URL: http://svn.apache.org/r1533358
Log:
LUCENE-4956: Reorder loading

Modified:
    lucene/dev/branches/lucene4956/lucene/analysis/arirang/src/java/org/apache/lucene/analysis/ko/dic/DictionaryUtil.java

Modified: lucene/dev/branches/lucene4956/lucene/analysis/arirang/src/java/org/apache/lucene/analysis/ko/dic/DictionaryUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4956/lucene/analysis/arirang/src/java/org/apache/lucene/analysis/ko/dic/DictionaryUtil.java?rev=1533358&r1=1533357&r2=1533358&view=diff
==============================================================================
--- lucene/dev/branches/lucene4956/lucene/analysis/arirang/src/java/org/apache/lucene/analysis/ko/dic/DictionaryUtil.java
(original)
+++ lucene/dev/branches/lucene4956/lucene/analysis/arirang/src/java/org/apache/lucene/analysis/ko/dic/DictionaryUtil.java
Fri Oct 18 08:24:08 2013
@@ -53,9 +53,6 @@ public class DictionaryUtil {
     try {
       List<String> strList = DictionaryResources.readLines(DictionaryResources.FILE_DICTIONARY);
       strList.addAll(DictionaryResources.readLines(DictionaryResources.FILE_EXTENSION));
-      List<String> compounds = DictionaryResources.readLines(DictionaryResources.FILE_COMPOUNDS);

-      List<String> abbrevs = DictionaryResources.readLines(DictionaryResources.FILE_ABBREV);

-    
       for(String str:strList) {
         String[] infos = str.split("[,]+");
         if(infos.length!=2) continue;
@@ -66,6 +63,7 @@ public class DictionaryUtil {
         dictionary.add(entry.getWord(), entry);
       }
       
+      List<String> compounds = DictionaryResources.readLines(DictionaryResources.FILE_COMPOUNDS);

       for(String compound: compounds) 
       {    
         String[] infos = compound.split("[:]+");
@@ -81,6 +79,7 @@ public class DictionaryUtil {
         dictionary.add(entry.getWord(), entry);
       }
       
+      List<String> abbrevs = DictionaryResources.readLines(DictionaryResources.FILE_ABBREV);

       for(String abbrev: abbrevs) 
       {    
         String[] infos = abbrev.split("[:]+");



Mime
View raw message