Hi, I am currently using Indri v5.11 on Ubuntu 20.04 for a project I am working on. I downloaded Indri 5.11 .tar.gz file from here: https://sourceforge.net/projects/lemur/files/lemur/indri-5.11/. I am using gcc and g++ 7.5.0 and I've installed Indri using these commands:
sudo apt install g++ zlib1g-dev
tar xzvf indri-5.11.tar.gz
rm indri-5.11.tar.gz
cd indri-5.11
./configure CXX="g++ -D_GLIBCXX_USE_CXX11_ABI=0"
make
sudo make install
After that I created a parameter file called index_parameters.xml following the guidelines shown here: https://sourceforge.net/p/lemur/wiki/IndriBuildIndex%20Parameters/. The parameter file looks like this:
<parameters>
<index>/home/patrick-easton/Documents/CSA_Project_Patrick_Easton_2021/IndriIndexTest</index>
<memory>1G</memory>
<corpus>
<path>/home/patrick-easton/Documents/CSA_Project_Patrick_Easton_2021/FirstCorpus</path>
<class>trectext</class>
</corpus>
<stemmer><name>krovetz</name></stemmer>
<field>
<name>p</name>
</field>
</parameters>
I am currently attempting to build a test index with just a small amount of documents. My documents are in the trectext format shown here: https://sourceforge.net/p/lemur/wiki/Indexer%20File%20Formats/. All the documents are stored in one .txt file. Here is one of the documents:
<DOC>
<DOCNO>0</DOCNO>
<TEXT>
The presence of communication amid scientific minds was equally important to the success of the Manhattan Project as scientific intellect was. The only cloud hanging over the impressive achievement of the atomic researchers and engineers is what their success truly meant; hundreds of thousands of innocent lives obliterated.
</TEXT>
</DOC>
The .txt file is called collection.txt and it only contains 10 documents. They are stored in the FirstCorpus directory shown in my parameter file. Once I had done all that I executed the command IndriBuildIndex index_parameters.xml and got this error message:
kstem_add_table_entry: Duplicate word emeritus will be ignored.
0:00: Created repository /home/patrick-easton/Documents/CSA_Project_Patrick_Easton_2021/IndriIndexTest
Adding p to trectext as an indexed field
Adding p to trectext as an included tag
0:00: Opened /home/patrick-easton/Documents/CSA_Project_Patrick_Easton_2021/FirstCorpus/collection.txt
Segmentation fault (core dumped)
I'm not sure where the issue lies, either in my installation or the parameters or the document format. Some help would be really appreciated. Thanks.