Permalink
Browse files

delete un-used modules on javasrc

  • Loading branch information...
1 parent f6c79a6 commit 3ca85d28fa2f7d9f307723bf6de322d1a058d202 @gogamza gogamza committed Nov 12, 2012
Showing with 576 additions and 877 deletions.
  1. +6 −0 .gitignore
  2. +4 −4 R/koAnalyzerRun.R
  3. +2 −2 R/manageDic.R
  4. BIN inst/java/ko.jar
  5. BIN inst/java/koreananalyzer-20100525.jar
  6. BIN inst/java/lucene-core-2.9.4.jar
  7. BIN inst/java/lucene-spellchecker-2.9.4.jar
  8. +0 −3 inst/javasrc/.classpath
  9. +3 −3 inst/javasrc/.settings/org.eclipse.jdt.core.prefs
  10. BIN inst/javasrc/HannanumInterface.class
  11. BIN inst/javasrc/Ko.class
  12. +0 −62 inst/javasrc/Ko.java
  13. +1 −0 inst/javasrc/{ → kr/pe/freesearch/jhannanum/comm}/HannanumInterface.java
  14. BIN inst/javasrc/kr/pe/freesearch/korean/HangulException.class
  15. BIN inst/javasrc/kr/pe/freesearch/korean/HangulTest.class
  16. +1 −18 inst/javasrc/kr/pe/freesearch/korean/HangulTest.java
  17. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangul$1.class
  18. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangul$2.class
  19. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangul$3.class
  20. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangul$4.class
  21. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangul$5.class
  22. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangul$6.class
  23. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangul.class
  24. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangulAnalyzer.class
  25. +0 −36 inst/javasrc/kr/pe/freesearch/korean/KoHangulAnalyzer.java
  26. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangulAutomata.class
  27. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangulSepllTokenizer$chType.class
  28. BIN inst/javasrc/kr/pe/freesearch/korean/KoHangulSepllTokenizer.class
  29. +0 −190 inst/javasrc/kr/pe/freesearch/korean/KoHangulSepllTokenizer.java
  30. BIN inst/javasrc/kr/pe/freesearch/korean/KoJamoAutomata.class
  31. BIN inst/javasrc/kr/pe/freesearch/korean/KoJamoAutomataTest.class
  32. BIN inst/javasrc/kr/pe/freesearch/korean/KoKeystrokeAutomata.class
  33. BIN inst/javasrc/kr/pe/freesearch/korean/KoKeystrokeAutomataTest.class
  34. +559 −559 inst/javasrc/{org/apache/lucene/search/spell → kr/pe/freesearch/korean}/KoLevensteinDistance.java
  35. BIN inst/javasrc/org/apache/lucene/search/spell/KoLevensteinDistance.class
View
@@ -0,0 +1,6 @@
+.Rproj.user
+.Rhistory
+.RData
+.Rbuildignore
+KoNLP.Rproj
+*.class
View
@@ -57,7 +57,7 @@ extractNoun <- function(sentence){
return(sentence)
}
if(!exists("HannanumObj", envir=KoNLP:::.KoNLPEnv)){
- assign("HannanumObj",.jnew("HannanumInterface"), KoNLP:::.KoNLPEnv)
+ assign("HannanumObj",.jnew("kr/pe/freesearch/jhannanum/comm/HannanumInterface"), KoNLP:::.KoNLPEnv)
}
out <- .jcall(get("HannanumObj",envir=KoNLP:::.KoNLPEnv),
"[S", "extractNoun",get("SejongDicsZip", envir=KoNLP:::.KoNLPEnv),sentence_pre,
@@ -82,7 +82,7 @@ MorphAnalyzer <- function(sentence){
return(sentence)
}
if(!exists("HannanumObj", envir=KoNLP:::.KoNLPEnv)){
- assign("HannanumObj",.jnew("HannanumInterface"), KoNLP:::.KoNLPEnv)
+ assign("HannanumObj",.jnew("kr/pe/freesearch/jhannanum/comm/HannanumInterface"), KoNLP:::.KoNLPEnv)
}
out <- .jcall(get("HannanumObj",envir=KoNLP:::.KoNLPEnv),
"S", "MorphAnalyzer", get("SejongDicsZip", envir=KoNLP:::.KoNLPEnv),sentence_pre,
@@ -105,7 +105,7 @@ SimplePos22 <- function(sentence){
return(sentence)
}
if(!exists("HannanumObj", envir=KoNLP:::.KoNLPEnv)){
- assign("HannanumObj",.jnew("HannanumInterface"), KoNLP:::.KoNLPEnv)
+ assign("HannanumObj",.jnew("kr/pe/freesearch/jhannanum/comm/HannanumInterface"), KoNLP:::.KoNLPEnv)
}
out <- .jcall(get("HannanumObj",envir=KoNLP:::.KoNLPEnv),
"S", "SimplePos22",get("SejongDicsZip", envir=KoNLP:::.KoNLPEnv),sentence_pre,
@@ -130,7 +130,7 @@ SimplePos09 <- function(sentence){
return(sentence)
}
if(!exists("HannanumObj", envir=KoNLP:::.KoNLPEnv)){
- assign("HannanumObj",.jnew("HannanumInterface"), KoNLP:::.KoNLPEnv)
+ assign("HannanumObj",.jnew("kr/pe/freesearch/jhannanum/comm/HannanumInterface"), KoNLP:::.KoNLPEnv)
}
out <- .jcall(get("HannanumObj",envir=KoNLP:::.KoNLPEnv),
"S", "SimplePos09",get("SejongDicsZip", envir=KoNLP:::.KoNLPEnv),sentence_pre,
View
@@ -50,7 +50,7 @@
#' @export
reloadAllDic <- function(){
if(!exists("HannanumObj", envir=KoNLP:::.KoNLPEnv)){
- assign("HannanumObj",.jnew("HannanumInterface"),KoNLP:::.KoNLPEnv)
+ assign("HannanumObj",.jnew("kr/pe/freesearch/jhannanum/comm/HannanumInterface"),KoNLP:::.KoNLPEnv)
}
.jcall(get("HannanumObj",envir=KoNLP:::.KoNLPEnv), "V", "reloadAllDic")
}
@@ -69,7 +69,7 @@ reloadAllDic <- function(){
# @export
reloadUserDic <- function(whichDics){
if(!exists("HannanumObj", envir=KoNLP:::.KoNLPEnv)){
- assign("HannanumObj",.jnew("HannanumInterface"),KoNLP:::.KoNLPEnv)
+ assign("HannanumObj",.jnew("kr/pe/freesearch/jhannanum/comm/HannanumInterface"),KoNLP:::.KoNLPEnv)
}
if(!is.character(whichDics)){
stop("'whichDics' must be character!")
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
@@ -3,9 +3,6 @@
<classpathentry kind="src" path=""/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="../java/jhannanum.jar"/>
- <classpathentry kind="lib" path="../java/koreananalyzer-20100525.jar"/>
- <classpathentry kind="lib" path="../java/lucene-core-2.9.4.jar"/>
- <classpathentry kind="lib" path="../java/lucene-spellchecker-2.9.4.jar"/>
<classpathentry kind="lib" path="../java/junit-4.10.jar"/>
<classpathentry kind="output" path=""/>
</classpath>
@@ -1,14 +1,14 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
Binary file not shown.
View
Binary file not shown.
View
@@ -1,62 +0,0 @@
-import java.io.CharArrayReader;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.lucene.analysis.TokenStream;
-import org.apache.lucene.analysis.kr.KoreanAnalyzer;
-import org.apache.lucene.analysis.tokenattributes.TermAttribute;
-
-public class Ko {
-
- KoreanAnalyzer KoAnalyzer = null;
-
- public Ko() {
- KoAnalyzer = new KoreanAnalyzer();
- }
-
- public Ko(String[] stopwords) {
- KoAnalyzer = new KoreanAnalyzer(stopwords);
- }
-
- public String[] KoAnalyze(String sentence) {
- TokenStream stream = KoAnalyzer.tokenStream("null",
- new CharArrayReader(sentence.toCharArray()));
- // OffsetAttribute offsetAttribute = (OffsetAttribute)
- // stream.getAttribute(OffsetAttribute.class);
- // int startOffset = offsetAttribute.startOffset();
- // int endOffset = offsetAttribute.endOffset();
- List<String> list = new ArrayList<String>();
- TermAttribute termAttribute = (TermAttribute) stream
- .getAttribute(TermAttribute.class);
- try {
- stream.reset();
- while (stream.incrementToken()) {
- // startOffset = offsetAttribute.startOffset();
- // endOffset = offsetAttribute.endOffset();
- list.add(termAttribute.toString());
- // buffer[i++] = termAttribute.toString();
- }
-
- stream.end();
- stream.close();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- return null;
- }
-
- return list.toArray(new String[0]);
- }
-
- /**
- * @param args
- */
-
- public static void main(String[] args) {
- Ko ko = new Ko();
- String[] res = ko.KoAnalyze("검색");
- System.out.println(res[0]);
- }
-
-}
@@ -1,3 +1,4 @@
+package kr.pe.freesearch.jhannanum.comm;
/* Copyright 2011 Heewon Jeon(madjakarta@gmail.com)
This file is part of KoNLP.
Binary file not shown.
Binary file not shown.
@@ -24,8 +24,6 @@
import java.io.StringReader;
import org.junit.Test;
-import org.apache.lucene.analysis.*;
-import org.apache.lucene.search.spell.KoLevensteinDistance;
public class HangulTest {
@Test
@@ -64,21 +62,6 @@ public void testConvertHangulStringToKeyStrokes() {
assertTrue(true);
}
- @Test
- public void testStandardTokenizer() throws IOException {
- KoHangulSepllTokenizer tokenizer = new KoHangulSepllTokenizer(
- new StringReader(";;;a123a4abcd검색엔진眞;;;+a122=="));
- Token nextTok = new Token();
- while (tokenizer.next(nextTok) != null) {
- System.out.println(nextTok);
- nextTok.clear();
- }
- }
-
- @Test
- public void testKoLevensteinDistance() {
- KoLevensteinDistance dist = new KoLevensteinDistance();
- System.out.println(dist.getDistance("abcda", "abcd"));
- }
+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,36 +0,0 @@
-/* Copyright 2011 Heewon Jeon(madjakarta@gmail.com)
-
-This file is part of KoNLP.
-
-KoNLP is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-KoNLP is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with KoNLP. If not, see <http://www.gnu.org/licenses/>
-*/
-
-package kr.pe.freesearch.korean;
-
-import java.io.Reader;
-
-import org.apache.lucene.analysis.Analyzer;
-import org.apache.lucene.analysis.LengthFilter;
-import org.apache.lucene.analysis.TokenStream;
-
-public class KoHangulAnalyzer extends Analyzer {
-
- @Override
- public TokenStream tokenStream(String fieldName, Reader reader) {
- LengthFilter lenFilter = new LengthFilter(new KoHangulSepllTokenizer(
- reader), 2, 126);
- return lenFilter;
- }
-
-}
Binary file not shown.
Oops, something went wrong.

0 comments on commit 3ca85d2

Please sign in to comment.