Re: Fwd: Pylucene jvm CharArraySet Error

2014-11-09 Thread Andi Vajda
On Sun, 9 Nov 2014, Alexander Alex wrote: Traceback (most recent call last): File "C:\index1.py", line 94, in IndexFiles(sys.argv[1], os.path.join(base_dir, INDEX_DIR), EnglishLemmaAnalyzer("english-bidirectional-distsim.tagger")) File "C:\index1.py", line 48, in __init__ self.indexDoc

Re: Fwd: Pylucene jvm CharArraySet Error

2014-11-09 Thread Alexander Alex
Traceback (most recent call last): File "C:\index1.py", line 94, in IndexFiles(sys.argv[1], os.path.join(base_dir, INDEX_DIR), EnglishLemmaAnalyzer("english-bidirectional-distsim.tagger")) File "C:\index1.py", line 48, in __init__ self.indexDocs(root, writer) File "C:\index1.py", lin

Re: Fwd: Pylucene jvm CharArraySet Error

2014-10-18 Thread Alexander Alex
Thanks Andi. am going to try these suggestions out. On Sat, Oct 18, 2014 at 9:55 PM, Andi Vajda wrote: > > On Sat, 18 Oct 2014, Alexander Alex wrote: > > The init file in the pylucene egg. Below is it: >> >> >> import os, sys >> >> if sys.platform == 'win32': >> from jcc.windows import add_jvm

Re: Fwd: Pylucene jvm CharArraySet Error

2014-10-18 Thread Andi Vajda
On Sat, 18 Oct 2014, Alexander Alex wrote: The init file in the pylucene egg. Below is it: import os, sys if sys.platform == 'win32': from jcc.windows import add_jvm_dll_directory_to_path add_jvm_dll_directory_to_path() import jcc, _lucene else: import _lucene __dir__ = os.path.abspath(

Re: Fwd: Pylucene jvm CharArraySet Error

2014-10-18 Thread Alexander Alex
The init file in the pylucene egg. Below is it: import os, sys if sys.platform == 'win32': from jcc.windows import add_jvm_dll_directory_to_path add_jvm_dll_directory_to_path() import jcc, _lucene else: import _lucene __dir__ = os.path.abspath(os.path.dirname(__file__)) class JavaError

Re: Fwd: Pylucene jvm CharArraySet Error

2014-10-17 Thread Andi Vajda
On Sat, 18 Oct 2014, Alexander Alex wrote: ok. I built the class files for the java files attached herein, add them to lucene-core-3.6.2.jar at org.apache.lucene.analysis and lucene-analyzers-3.6.2.jar at org.apache.lucene.analysis. I then added the path of the dependencies to classpath in the

Re: Fwd: Pylucene jvm CharArraySet Error

2014-10-17 Thread Alexander Alex
ok. I built the class files for the java files attached herein, add them to lucene-core-3.6.2.jar at org.apache.lucene.analysis and lucene-analyzers-3.6.2.jar at org.apache.lucene.analysis. I then added the path of the dependencies to classpath in the init.py file. I ran the typical index file usin

Re: Fwd: Pylucene jvm CharArraySet Error

2014-10-17 Thread Andi Vajda
On Fri, 17 Oct 2014, Alexander Alex wrote: Meanwhile, am using lucene 3.6.2 version. The problem is jvm instantiation from any python code using lucene caused as a result of the classes I added to lucene core. -- Forwarded message -- I added a customized lucene analyzer class