├── bin ├── anyclass ├── trec_setup ├── terrier-env.sh ├── fq.bat ├── lcp.bat └── debug.bat ├── var └── index │ └── DEFAULT_INDEX_DIR ├── doc ├── javadoc │ └── DEFAULT_JAVADOC_DIR ├── requirements.txt ├── README.md ├── images │ ├── img1.png │ ├── img2.png │ ├── img4.png │ ├── img11.png │ ├── img14.png │ ├── img16.png │ ├── img19.png │ ├── img23.png │ ├── img24.png │ ├── img26.png │ ├── WT2GWebInterface.png │ ├── terrier-logo-web.jpg │ ├── SimpleWebInterface.png │ ├── indexing_architecture.png │ ├── retrieval_architecture.png │ └── indexing_architecture-source.odg ├── contacts.md ├── Makefile ├── make.bat ├── terrier_desktop.md └── todo.md ├── share ├── tests │ ├── files │ │ ├── helloworld.txt │ │ ├── helloworld.txt.bgz │ │ ├── helloworld.txt.bz2 │ │ └── helloworld.txt.gz │ ├── trec │ │ ├── wt2g.indexproperties │ │ └── wt2g.runs │ ├── shakespeare │ │ ├── test.shakespeare-merchant.phrase.topics │ │ ├── test.shakespeare-merchant.disjunctive.topics │ │ ├── test.shakespeare-merchant.field.topics │ │ ├── test.shakespeare-merchant.phrase-fields.topics │ │ ├── indices │ │ │ └── terrier-3.x │ │ │ │ ├── shak-basic.direct.bf │ │ │ │ ├── shak-basic.meta.idx │ │ │ │ ├── shak-blocks.meta.idx │ │ │ │ ├── shak-fields.meta.idx │ │ │ │ ├── shak-basic.inverted.bf │ │ │ │ ├── shak-basic.meta.zdata │ │ │ │ ├── shak-blocks.direct.bf │ │ │ │ ├── shak-blocks.meta.zdata │ │ │ │ ├── shak-fields.direct.bf │ │ │ │ ├── shak-fields.meta.zdata │ │ │ │ ├── shak-blocks.inverted.bf │ │ │ │ ├── shak-fields.inverted.bf │ │ │ │ ├── shak-basic.lexicon.fsomapid │ │ │ │ ├── shak-fieldsblocks.direct.bf │ │ │ │ ├── shak-fieldsblocks.meta.idx │ │ │ │ ├── shak-basic.lexicon.fsomapfile │ │ │ │ ├── shak-basic.lexicon.fsomaphash │ │ │ │ ├── shak-blocks.lexicon.fsomapfile │ │ │ │ ├── shak-blocks.lexicon.fsomaphash │ │ │ │ ├── shak-blocks.lexicon.fsomapid │ │ │ │ ├── shak-fields.lexicon.fsomapfile │ │ │ │ ├── shak-fields.lexicon.fsomaphash │ │ │ │ ├── shak-fields.lexicon.fsomapid │ │ │ │ ├── shak-fieldsblocks.inverted.bf │ │ │ │ ├── shak-fieldsblocks.meta.zdata │ │ │ │ ├── shak-basic.document.fsarrayfile │ │ │ │ ├── shak-blocks.document.fsarrayfile │ │ │ │ ├── shak-fields.document.fsarrayfile │ │ │ │ ├── shak-fieldsblocks.lexicon.fsomapid │ │ │ │ ├── shak-fieldsblocks.lexicon.fsomapfile │ │ │ │ ├── shak-fieldsblocks.lexicon.fsomaphash │ │ │ │ └── shak-fieldsblocks.document.fsarrayfile │ │ ├── test.shakespeare-merchant.basic.topics │ │ └── test.shakespeare-merchant.all.qrels │ ├── tweets │ │ ├── oscars.json.gz │ │ └── utf8-tweet.json │ └── simplefilecollection │ │ ├── document.doc │ │ ├── document.docx │ │ ├── document.pdf │ │ ├── document.ppt │ │ ├── document.pptx │ │ ├── document.xls │ │ ├── document.xlsx │ │ ├── document.txt │ │ └── document.html ├── images │ ├── terrier-logo-web.jpg │ ├── terrier-logo-large.jpg │ ├── terrier-desktop-search.gif │ ├── terrier-logo-web-transparent.png │ └── terrier-logo-large-transparent.png └── vaswani_npl │ └── README.md ├── modules ├── learning │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org.terrier.applications.CLITool │ │ │ └── java │ │ │ └── org │ │ │ └── terrier │ │ │ ├── matching │ │ │ └── FilterMatching.java │ │ │ └── learning │ │ │ └── package.html │ └── pom.xml ├── rest-server │ └── src │ │ └── main │ │ ├── resources │ │ └── META-INF │ │ │ └── services │ │ │ └── org.terrier.applications.CLITool │ │ └── java │ │ └── org │ │ └── terrier │ │ └── rest │ │ └── package-info.java ├── core │ └── src │ │ └── main │ │ ├── resources │ │ ├── META-INF │ │ │ └── services │ │ │ │ ├── org.terrier.querying.ManagerFactory$Builder │ │ │ │ ├── org.terrier.structures.IndexFactory$IndexLoader │ │ │ │ └── org.terrier.applications.CLITool │ │ └── terrier.default.properties │ │ ├── java │ │ ├── org │ │ │ └── terrier │ │ │ │ ├── querying │ │ │ │ ├── parser │ │ │ │ │ ├── .gitignore │ │ │ │ │ └── package.html │ │ │ │ ├── MQTRewritingProcess.java │ │ │ │ ├── summarisation │ │ │ │ │ └── package.html │ │ │ │ ├── package.html │ │ │ │ ├── PostProcess.java │ │ │ │ ├── ManagerRequisite.java │ │ │ │ ├── ProcessPhaseRequisites.java │ │ │ │ └── TerrierQLParser.java │ │ │ │ ├── matching │ │ │ │ ├── models │ │ │ │ │ ├── Null.java │ │ │ │ │ ├── CoordinateMatch.java │ │ │ │ │ ├── dependence │ │ │ │ │ │ ├── package-info.java │ │ │ │ │ │ └── pBiL2.java │ │ │ │ │ ├── queryexpansion │ │ │ │ │ │ └── package.html │ │ │ │ │ └── DFRNorm2BaseModel.java │ │ │ │ ├── package.html │ │ │ │ ├── dsms │ │ │ │ │ └── package.html │ │ │ │ ├── taat │ │ │ │ │ └── package.html │ │ │ │ ├── daat │ │ │ │ │ └── package.html │ │ │ │ ├── matchops │ │ │ │ │ └── package-info.java │ │ │ │ └── tsms │ │ │ │ │ └── package.html │ │ │ │ ├── tartarus │ │ │ │ └── snowball │ │ │ │ │ ├── package-info.java │ │ │ │ │ └── ext │ │ │ │ │ └── package-info.java │ │ │ │ ├── structures │ │ │ │ ├── UncompressedMetaIndex.java │ │ │ │ ├── postings │ │ │ │ │ └── bit │ │ │ │ │ │ └── package.html │ │ │ │ ├── restructure │ │ │ │ │ └── package-info.java │ │ │ │ ├── bit │ │ │ │ │ └── package.html │ │ │ │ ├── collections │ │ │ │ │ ├── package.html │ │ │ │ │ └── OrderedMap.java │ │ │ │ ├── seralization │ │ │ │ │ ├── package.html │ │ │ │ │ └── WriteableFactory.java │ │ │ │ ├── package.html │ │ │ │ └── IndexConfigurable.java │ │ │ │ ├── utility │ │ │ │ ├── io │ │ │ │ │ ├── package.html │ │ │ │ │ └── RandomDataOutput.java │ │ │ │ ├── package.html │ │ │ │ ├── restructure │ │ │ │ │ └── package.html │ │ │ │ └── MemoryChecker.java │ │ │ │ ├── statistics │ │ │ │ └── package.html │ │ │ │ ├── sorting │ │ │ │ └── package.html │ │ │ │ ├── terms │ │ │ │ ├── package.html │ │ │ │ ├── Stemmer.java │ │ │ │ ├── DutchSnowballStemmer.java │ │ │ │ ├── DanishSnowballStemmer.java │ │ │ │ ├── FrenchSnowballStemmer.java │ │ │ │ ├── EnglishSnowballStemmer.java │ │ │ │ ├── FinnishSnowballStemmer.java │ │ │ │ ├── GermanSnowballStemmer.java │ │ │ │ ├── ItalianSnowballStemmer.java │ │ │ │ ├── RussianSnowballStemmer.java │ │ │ │ ├── SpanishSnowballStemmer.java │ │ │ │ ├── SwedishSnowballStemmer.java │ │ │ │ ├── TurkishSnowballStemmer.java │ │ │ │ ├── RomanianSnowballStemmer.java │ │ │ │ ├── HungarianSnowballStemmer.java │ │ │ │ ├── NorwegianSnowballStemmer.java │ │ │ │ └── PortugueseSnowballStemmer.java │ │ │ │ ├── compression │ │ │ │ └── bit │ │ │ │ │ └── BitWritable.java │ │ │ │ └── indexing │ │ │ │ └── tokenisation │ │ │ │ └── TokenStream.java │ │ ├── package.html │ │ └── overview.html │ │ └── templates │ │ └── org │ │ └── terrier │ │ └── Version.java ├── concurrent │ ├── src │ │ ├── main │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ ├── org.terrier.querying.ManagerFactory$Builder │ │ │ │ ├── org.terrier.structures.IndexFactory$IndexLoader │ │ │ │ └── org.terrier.applications.CLITool │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── terrier │ │ │ └── structures │ │ │ └── concurrent │ │ │ ├── TestShakParallelTRECQueryingMem.java │ │ │ └── TestThreadSafeManager.java │ ├── README.md │ └── pom.xml ├── rest-client │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org.terrier.querying.ManagerFactory$Builder │ │ │ └── java │ │ │ └── org │ │ │ └── terrier │ │ │ └── restclient │ │ │ └── package-info.java │ └── pom.xml ├── realtime │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org.terrier.structures.IndexFactory$IndexLoader │ │ │ └── java │ │ │ └── org │ │ │ └── terrier │ │ │ └── realtime │ │ │ ├── multi │ │ │ ├── BlockMultiIterablePosting.java │ │ │ ├── BlockMultiDirectIterablePosting.java │ │ │ └── package.html │ │ │ ├── restructure │ │ │ └── package.html │ │ │ ├── memory │ │ │ ├── fields │ │ │ │ ├── package.html │ │ │ │ └── MemoryFieldsDirectIterablePosting.java │ │ │ ├── package.html │ │ │ ├── MemoryPostingList.java │ │ │ ├── MetaIndexMap.java │ │ │ └── MemoryPointer.java │ │ │ ├── package.html │ │ │ ├── matching │ │ │ └── package.html │ │ │ └── incremental │ │ │ └── package.html │ └── pom.xml ├── batch-retrieval │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org.terrier.applications.CLITool │ │ │ └── java │ │ │ └── org │ │ │ └── terrier │ │ │ ├── structures │ │ │ ├── cache │ │ │ │ ├── package.html │ │ │ │ └── GrowingMapQueryStringResultCache.java │ │ │ └── outputformat │ │ │ │ └── package.html │ │ │ ├── applications │ │ │ └── batchquerying │ │ │ │ ├── QuerySourceUtils.java │ │ │ │ └── package.html │ │ │ └── evaluation │ │ │ └── package.html │ └── pom.xml ├── tests │ ├── src │ │ └── test │ │ │ ├── java │ │ │ └── org │ │ │ │ └── terrier │ │ │ │ ├── structures │ │ │ │ ├── TestLZ4MetaIndex.java │ │ │ │ ├── TestZstdMetaIndex.java │ │ │ │ ├── TestCompressingMetaIndex.java │ │ │ │ ├── TestUncompressingMetaIndex.java │ │ │ │ └── collections │ │ │ │ │ └── TestMergedIterator.java │ │ │ │ ├── matching │ │ │ │ ├── TestDAATFullMatching.java │ │ │ │ ├── TestTAATFullMatching.java │ │ │ │ └── models │ │ │ │ │ └── TestBM25.java │ │ │ │ ├── realtime │ │ │ │ └── multi │ │ │ │ │ └── TestMultiLexicon.java │ │ │ │ ├── applications │ │ │ │ ├── TestDirectQuerySource.java │ │ │ │ ├── TestCLITool.java │ │ │ │ └── TestShowDocumentCommand.java │ │ │ │ ├── utility │ │ │ │ ├── TestClassNameParser.java │ │ │ │ ├── TestVersion.java │ │ │ │ └── TestTimer.java │ │ │ │ ├── tests │ │ │ │ └── TRECWT2GEndtoEndTest.java │ │ │ │ └── fat │ │ │ │ ├── TestScoringMatchingWithFat.java │ │ │ │ └── FatTestSuite.java │ │ │ └── resources │ │ │ └── logback-test.xml │ └── share │ │ └── tests │ │ └── tweets │ │ └── utf8-tweet.json ├── index-api │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── terrier │ │ │ └── structures │ │ │ ├── package-info.java │ │ │ ├── ConcurrentReadable.java │ │ │ ├── FieldDocumentIndex.java │ │ │ ├── BlockEntryStatistics.java │ │ │ ├── FieldEntryStatistics.java │ │ │ └── NgramEntryStatistics.java │ └── TODO.md ├── retrieval-api │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── terrier │ │ └── querying │ │ └── ScoredDocList.java ├── batch-indexers │ ├── src │ │ └── main │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── services │ │ │ │ └── org.terrier.applications.CLITool │ │ │ └── java │ │ │ └── org │ │ │ └── terrier │ │ │ └── structures │ │ │ ├── indexing │ │ │ ├── classical │ │ │ │ └── package.html │ │ │ ├── UncompressedMetaIndexBuilder.java │ │ │ ├── singlepass │ │ │ │ └── package.html │ │ │ ├── package.html │ │ │ ├── ZstdMetaIndexBuilder.java │ │ │ └── LZ4MetaIndexBuilder.java │ │ │ └── merging │ │ │ └── package.html │ └── pom.xml ├── logging │ └── pom.xml ├── assemblies │ └── src │ │ └── assembly │ │ └── module-jar-with-dependencies.xml └── docvectors │ └── pom.xml ├── .readthedocs.yml ├── .gitignore ├── src └── webapps │ ├── wt2g │ ├── style.css │ └── index.html │ └── simple │ ├── style.css │ └── index.html ├── etc └── logback.xml ├── licenses ├── apache │ └── APL-jarfiles.txt ├── textmining │ └── License.txt ├── trove │ └── README-license.txt ├── jforests │ └── CitationPolicy.txt ├── snowball │ └── bsd-license.txt └── pdfbox │ └── LICENSE ├── .settings └── org.eclipse.jdt.core.prefs └── .github └── workflows └── build-unit-tests.yml /bin/anyclass: -------------------------------------------------------------------------------- 1 | anyclass.sh -------------------------------------------------------------------------------- /bin/trec_setup: -------------------------------------------------------------------------------- 1 | trec_setup.sh -------------------------------------------------------------------------------- /var/index/DEFAULT_INDEX_DIR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /doc/javadoc/DEFAULT_JAVADOC_DIR: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /doc/requirements.txt: -------------------------------------------------------------------------------- 1 | javasphinx 2 | -------------------------------------------------------------------------------- /share/tests/files/helloworld.txt: -------------------------------------------------------------------------------- 1 | hello world 2 | -------------------------------------------------------------------------------- /doc/README.md: -------------------------------------------------------------------------------- 1 | See [index.md](index.md) for the documentation 2 | -------------------------------------------------------------------------------- /doc/images/img1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img1.png -------------------------------------------------------------------------------- /doc/images/img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img2.png -------------------------------------------------------------------------------- /doc/images/img4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img4.png -------------------------------------------------------------------------------- /doc/images/img11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img11.png -------------------------------------------------------------------------------- /doc/images/img14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img14.png -------------------------------------------------------------------------------- /doc/images/img16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img16.png -------------------------------------------------------------------------------- /doc/images/img19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img19.png -------------------------------------------------------------------------------- /doc/images/img23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img23.png -------------------------------------------------------------------------------- /doc/images/img24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img24.png -------------------------------------------------------------------------------- /doc/images/img26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/img26.png -------------------------------------------------------------------------------- /share/tests/trec/wt2g.indexproperties: -------------------------------------------------------------------------------- 1 | num.Documents 247491 2 | #num.Terms 1002691 3 | index.meta.entries 247491 4 | -------------------------------------------------------------------------------- /doc/images/WT2GWebInterface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/WT2GWebInterface.png -------------------------------------------------------------------------------- /doc/images/terrier-logo-web.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/terrier-logo-web.jpg -------------------------------------------------------------------------------- /modules/learning/src/main/resources/META-INF/services/org.terrier.applications.CLITool: -------------------------------------------------------------------------------- 1 | org.terrier.learning.JForestsCommand -------------------------------------------------------------------------------- /share/tests/shakespeare/test.shakespeare-merchant.phrase.topics: -------------------------------------------------------------------------------- 1 | TEST20 "DRAMATIS PERSONAE" 2 | TEST21 "Sweet doctor" 3 | -------------------------------------------------------------------------------- /doc/images/SimpleWebInterface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/SimpleWebInterface.png -------------------------------------------------------------------------------- /modules/rest-server/src/main/resources/META-INF/services/org.terrier.applications.CLITool: -------------------------------------------------------------------------------- 1 | org.terrier.rest.SingleIndexRestServer -------------------------------------------------------------------------------- /share/images/terrier-logo-web.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/images/terrier-logo-web.jpg -------------------------------------------------------------------------------- /share/tests/tweets/oscars.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/tweets/oscars.json.gz -------------------------------------------------------------------------------- /doc/images/indexing_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/indexing_architecture.png -------------------------------------------------------------------------------- /share/images/terrier-logo-large.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/images/terrier-logo-large.jpg -------------------------------------------------------------------------------- /share/tests/files/helloworld.txt.bgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/files/helloworld.txt.bgz -------------------------------------------------------------------------------- /share/tests/files/helloworld.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/files/helloworld.txt.bz2 -------------------------------------------------------------------------------- /share/tests/files/helloworld.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/files/helloworld.txt.gz -------------------------------------------------------------------------------- /share/tests/shakespeare/test.shakespeare-merchant.disjunctive.topics: -------------------------------------------------------------------------------- 1 | TEST40: {dramatis personae} 2 | TEST41: {dramatis suitor} 3 | -------------------------------------------------------------------------------- /share/tests/trec/wt2g.runs: -------------------------------------------------------------------------------- 1 | -Dtrec.model=BM25 -c 0.2381 0.3181 2 | -Dtrec.model=PL2 -c 26.04 0.3246 3 | -Dtrec.model=DFRee 0.2824 4 | -------------------------------------------------------------------------------- /doc/images/retrieval_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/retrieval_architecture.png -------------------------------------------------------------------------------- /share/images/terrier-desktop-search.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/images/terrier-desktop-search.gif -------------------------------------------------------------------------------- /modules/core/src/main/resources/META-INF/services/org.terrier.querying.ManagerFactory$Builder: -------------------------------------------------------------------------------- 1 | org.terrier.querying.LocalManager$Builder 2 | -------------------------------------------------------------------------------- /share/tests/shakespeare/test.shakespeare-merchant.field.topics: -------------------------------------------------------------------------------- 1 | TEST10 +title:street 2 | TEST11 +speaker:mOrOCCO 3 | TEST12 +speaker:SHYLOCK 4 | -------------------------------------------------------------------------------- /share/tests/shakespeare/test.shakespeare-merchant.phrase-fields.topics: -------------------------------------------------------------------------------- 1 | TEST30 title:"Belmont Avenue" 2 | TEST31 title:"court of justice" 3 | -------------------------------------------------------------------------------- /doc/images/indexing_architecture-source.odg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/doc/images/indexing_architecture-source.odg -------------------------------------------------------------------------------- /modules/concurrent/src/main/resources/META-INF/services/org.terrier.querying.ManagerFactory$Builder: -------------------------------------------------------------------------------- 1 | org.terrier.querying.ThreadSafeManager$Builder -------------------------------------------------------------------------------- /modules/concurrent/src/main/resources/META-INF/services/org.terrier.structures.IndexFactory$IndexLoader: -------------------------------------------------------------------------------- 1 | org.terrier.structures.ConcurrentIndexLoader -------------------------------------------------------------------------------- /modules/rest-client/src/main/resources/META-INF/services/org.terrier.querying.ManagerFactory$Builder: -------------------------------------------------------------------------------- 1 | org.terrier.restclient.RestClientManagerBuilder -------------------------------------------------------------------------------- /share/images/terrier-logo-web-transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/images/terrier-logo-web-transparent.png -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/simplefilecollection/document.doc -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/simplefilecollection/document.docx -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/simplefilecollection/document.pdf -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.ppt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/simplefilecollection/document.ppt -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/simplefilecollection/document.pptx -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/simplefilecollection/document.xls -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/simplefilecollection/document.xlsx -------------------------------------------------------------------------------- /share/images/terrier-logo-large-transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/images/terrier-logo-large-transparent.png -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-basic.direct.bf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-basic.direct.bf -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-basic.meta.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-basic.meta.idx -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-blocks.meta.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-blocks.meta.idx -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fields.meta.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fields.meta.idx -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-basic.inverted.bf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-basic.inverted.bf -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-basic.meta.zdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-basic.meta.zdata -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-blocks.direct.bf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-blocks.direct.bf -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-blocks.meta.zdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-blocks.meta.zdata -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fields.direct.bf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fields.direct.bf -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fields.meta.zdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fields.meta.zdata -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-blocks.inverted.bf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-blocks.inverted.bf -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fields.inverted.bf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fields.inverted.bf -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-basic.lexicon.fsomapid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-basic.lexicon.fsomapid -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.direct.bf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.direct.bf -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.meta.idx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.meta.idx -------------------------------------------------------------------------------- /modules/core/src/main/resources/META-INF/services/org.terrier.structures.IndexFactory$IndexLoader: -------------------------------------------------------------------------------- 1 | org.terrier.structures.IndexOnDisk$DiskIndexLoader 2 | org.terrier.structures.IndexFactory$DirectIndexLoader -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-basic.lexicon.fsomapfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-basic.lexicon.fsomapfile -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-basic.lexicon.fsomaphash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-basic.lexicon.fsomaphash -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-blocks.lexicon.fsomapfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-blocks.lexicon.fsomapfile -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-blocks.lexicon.fsomaphash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-blocks.lexicon.fsomaphash -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-blocks.lexicon.fsomapid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-blocks.lexicon.fsomapid -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fields.lexicon.fsomapfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fields.lexicon.fsomapfile -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fields.lexicon.fsomaphash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fields.lexicon.fsomaphash -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fields.lexicon.fsomapid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fields.lexicon.fsomapid -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.inverted.bf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.inverted.bf -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.meta.zdata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.meta.zdata -------------------------------------------------------------------------------- /modules/realtime/src/main/resources/META-INF/services/org.terrier.structures.IndexFactory$IndexLoader: -------------------------------------------------------------------------------- 1 | org.terrier.realtime.incremental.IncrementalIndex$Loader 2 | org.terrier.realtime.memory.MemoryIndex$Loader 3 | -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-basic.document.fsarrayfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-basic.document.fsarrayfile -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-blocks.document.fsarrayfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-blocks.document.fsarrayfile -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fields.document.fsarrayfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fields.document.fsarrayfile -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.lexicon.fsomapid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.lexicon.fsomapid -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.lexicon.fsomapfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.lexicon.fsomapfile -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.lexicon.fsomaphash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.lexicon.fsomaphash -------------------------------------------------------------------------------- /share/tests/shakespeare/test.shakespeare-merchant.basic.topics: -------------------------------------------------------------------------------- 1 | TEST00 dramatis personae 2 | TEST01 portia 3 | TEST02 tubal 4 | TEST03 morocco 5 | TEST04 +ANTONIO +SALANIO 6 | TEST05 lies -twenty 7 | TEST06 +deny twenty 8 | -------------------------------------------------------------------------------- /share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.document.fsarrayfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrier-org/terrier-core/HEAD/share/tests/shakespeare/indices/terrier-3.x/shak-fieldsblocks.document.fsarrayfile -------------------------------------------------------------------------------- /modules/batch-retrieval/src/main/resources/META-INF/services/org.terrier.applications.CLITool: -------------------------------------------------------------------------------- 1 | org.terrier.applications.batchquerying.TRECQuerying$Command 2 | org.terrier.evaluation.TrecEvalEvaluation$Command 3 | org.terrier.evaluation.BatchEvaluationCommand -------------------------------------------------------------------------------- /share/vaswani_npl/README.md: -------------------------------------------------------------------------------- 1 | This is an IR test collection, i.e. document corpus, topics and qrels. It has been transformed into a traditional TREC format. The original version can be found at http://ir.dcs.gla.ac.uk/resources/test_collections/npl/ 2 | 3 | -------------------------------------------------------------------------------- /modules/concurrent/src/main/resources/META-INF/services/org.terrier.applications.CLITool: -------------------------------------------------------------------------------- 1 | org.terrier.applications.batchquerying.ParallelTRECQuerying$Command 2 | org.terrier.evaluation.TrecEvalEvaluation$Command 3 | org.terrier.evaluation.BatchEvaluationCommand -------------------------------------------------------------------------------- /.readthedocs.yml: -------------------------------------------------------------------------------- 1 | # Required 2 | version: 2 3 | 4 | # Build documentation in the docs/ directory with Sphinx 5 | sphinx: 6 | configuration: doc/conf.py 7 | 8 | python: 9 | version: 3.7 10 | install: 11 | - requirements: doc/requirements.txt 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /doc/javadoc/* 2 | /classes/ 3 | /target/ 4 | /logs/ 5 | /target/ 6 | modules/*/bin/ 7 | modules/*/target/ 8 | .DS_Store 9 | .classpath 10 | .settings 11 | .project 12 | pom.xml.versionsBackup 13 | *.class 14 | overview.html 15 | package.html 16 | .vscode/settings.json 17 | -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.txt: -------------------------------------------------------------------------------- 1 | Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. -------------------------------------------------------------------------------- /bin/terrier-env.sh: -------------------------------------------------------------------------------- 1 | #You can use this file to setup any additional environment variables used by anyclass.sh 2 | 3 | #Extra entries can be added to the classpath 4 | #CLASSPATH= 5 | 6 | #For example, to use Hadoop support in Terrier, you need to add 7 | #the Hadoop conf/ folder to the classpath 8 | #CLASSPATH=/path/to/hadoop/conf 9 | 10 | -------------------------------------------------------------------------------- /modules/tests/src/test/java/org/terrier/structures/TestLZ4MetaIndex.java: -------------------------------------------------------------------------------- 1 | package org.terrier.structures; 2 | import org.terrier.structures.indexing.*; 3 | 4 | public class TestLZ4MetaIndex extends BaseTestCompressedMetaIndex { 5 | 6 | public TestLZ4MetaIndex() { 7 | metaBuilderClass = LZ4MetaIndexBuilder.class; 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /modules/tests/src/test/java/org/terrier/structures/TestZstdMetaIndex.java: -------------------------------------------------------------------------------- 1 | package org.terrier.structures; 2 | import org.terrier.structures.indexing.*; 3 | 4 | public class TestZstdMetaIndex extends BaseTestCompressedMetaIndex { 5 | 6 | public TestZstdMetaIndex() { 7 | metaBuilderClass = ZstdMetaIndexBuilder.class; 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /modules/index-api/src/main/java/org/terrier/structures/package-info.java: -------------------------------------------------------------------------------- 1 | /** Provides the interfaces for the index data structures used 2 | for retrieval with the Terrier platform. 3 |
4 | These include the APIs of the inverted index, the 5 | direct index, the lexicon and the document index, as well as the Posting objects
6 | **/ 7 | package org.terrier.structures; -------------------------------------------------------------------------------- /modules/tests/src/test/java/org/terrier/structures/TestCompressingMetaIndex.java: -------------------------------------------------------------------------------- 1 | package org.terrier.structures; 2 | import org.terrier.structures.indexing.*; 3 | 4 | public class TestCompressingMetaIndex extends BaseTestCompressedMetaIndex { 5 | 6 | public TestCompressingMetaIndex() { 7 | metaBuilderClass = CompressingMetaIndexBuilder.class; 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /modules/tests/src/test/java/org/terrier/structures/TestUncompressingMetaIndex.java: -------------------------------------------------------------------------------- 1 | package org.terrier.structures; 2 | import org.terrier.structures.indexing.*; 3 | 4 | public class TestUncompressingMetaIndex extends BaseTestCompressedMetaIndex { 5 | 6 | public TestUncompressingMetaIndex() { 7 | metaBuilderClass = UncompressedMetaIndexBuilder.class; 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/querying/parser/.gitignore: -------------------------------------------------------------------------------- 1 | /MainTokenTypes.java 2 | /MainTokenTypes.txt 3 | /NumbersTokenTypes.java 4 | /NumbersTokenTypes.txt 5 | /TerrierFloatLexer.java 6 | /TerrierFloatLexer.smap 7 | /TerrierLexer.java 8 | /TerrierLexer.smap 9 | /TerrierQueryParser.java 10 | /TerrierQueryParser.smap 11 | /TerrierQueryParserTokenTypes.java 12 | /TerrierQueryParserTokenTypes.txt 13 | -------------------------------------------------------------------------------- /share/tests/simplefilecollection/document.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
12 |
13 |
17 |
18 |
Powered by Terrier
22 |
12 |
13 |
17 |
18 |
Powered by Terrier
22 | Provides bit-level IterablePosting implementations.
27 | 28 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/structures/restructure/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Terrier - Terabyte Retriever 3 | * Webpage: http://terrier.org 4 | * Contact: terrier{a.}dcs.gla.ac.uk 5 | * University of Glasgow - School of Computing Science 6 | * http://www.gla.ac.uk/ 7 | * 8 | * The contents of this file are subject to the Mozilla Public License 9 | * Version 1.1 (the "License"); you may not use this file except in 10 | * compliance with the License. You may obtain a copy of the License at 11 | * http://www.mozilla.org/MPL/ 12 | * 13 | * Software distributed under the License is distributed on an "AS IS" 14 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 15 | * the License for the specific language governing rights and limitations 16 | * under the License. 17 | * 18 | * The Original Code is package-info.java. 19 | * 20 | * The Original Code is Copyright (C) 2017-2020 the University of Glasgow. 21 | * All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * Craig Macdonald 25 | */ 26 | /** Contains legacy index data structure classes */ 27 | package org.terrier.structures.restructure; 28 | -------------------------------------------------------------------------------- /modules/realtime/src/main/java/org/terrier/realtime/restructure/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides methods to alter the structure of a real-time index.
27 | 28 | -------------------------------------------------------------------------------- /bin/lcp.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | REM Terrier - Terabyte Retriever 3 | REM Webpage: http://terrier.org/ 4 | REM Contact: terrier@dcs.gla.ac.uk 5 | REM 6 | REM The contents of this file are subject to the Mozilla Public 7 | REM License Version 1.1 (the "License"); you may not use this file 8 | REM except in compliance with the License. You may obtain a copy of 9 | REM the License at http://www.mozilla.org/MPL/ 10 | REM 11 | REM Software distributed under the License is distributed on an "AS 12 | REM IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 13 | REM implied. See the License for the specific language governing 14 | REM rights and limitations under the License. 15 | REM 16 | REM The Original Code is lcp.bat 17 | REM 18 | REM The Initial Developer of the Original Code is the University of Glasgow. 19 | REM Portions created by The Initial Developer are Copyright (C) 2004-2011 20 | REM the initial Developer. All Rights Reserved. 21 | REM 22 | REM Contributor(s): 23 | REM Craig MacdonaldProvides MemoryIndex structures that support field search.
27 | 28 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/matching/models/dependence/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Terrier - Terabyte Retriever 3 | * Webpage: http://terrier.org 4 | * Contact: terrier{a.}dcs.gla.ac.uk 5 | * University of Glasgow - School of Computing Science 6 | * http://www.gla.ac.uk/ 7 | * 8 | * The contents of this file are subject to the Mozilla Public License 9 | * Version 1.1 (the "License"); you may not use this file except in 10 | * compliance with the License. You may obtain a copy of the License at 11 | * http://www.mozilla.org/MPL/ 12 | * 13 | * Software distributed under the License is distributed on an "AS IS" 14 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 15 | * the License for the specific language governing rights and limitations 16 | * under the License. 17 | * 18 | * The Original Code is package-info.java. 19 | * 20 | * The Original Code is Copyright (C) 2017-2020 the University of Glasgow. 21 | * All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * Craig Macdonald 25 | */ 26 | /** Weighting models for term dependence models */ 27 | package org.terrier.matching.models.dependence; 28 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/structures/bit/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides on-disk index structures that support the older bit-level compression scheme.
27 | 28 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/utility/io/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |This package includes classes that are used for various IO duties within Terrier.
28 | 29 | 30 | -------------------------------------------------------------------------------- /modules/batch-retrieval/src/main/java/org/terrier/structures/cache/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides caching of search results when performing batch querying operations.
27 | 28 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/utility/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |This package includes classes that are used in various part of 28 | the Terrier Platform.
29 | 30 | 31 | -------------------------------------------------------------------------------- /modules/core/src/main/java/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides application-level code that use the Terrier platform to 27 | perform indexing and retrieval from either standard test collections
28 | 29 | 30 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/matching/models/queryexpansion/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides the classes that implement various query expansion models.
27 | 28 | 29 | -------------------------------------------------------------------------------- /modules/batch-indexers/src/main/java/org/terrier/structures/indexing/classical/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides functionality for creating on-disk indices via indexer classes.
27 | 28 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/statistics/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides the implementations of various statistical routines. In particular, 27 | the Gamma function is implemented.
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/querying/parser/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides the parser specification and the classes that implement 27 | the query language of the Terrier platform.
28 | 29 | 30 | -------------------------------------------------------------------------------- /modules/learning/src/main/java/org/terrier/learning/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides interfaces for Terrier 'Fat' ResultSets that contain features and decorators that add new features to those result sets.
27 | 28 | -------------------------------------------------------------------------------- /modules/realtime/src/main/java/org/terrier/realtime/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides index structures that support updating and real-time retrieval. These are MemoryIndex, IncrementalIndex and MultiIndex.
27 | 28 | -------------------------------------------------------------------------------- /modules/batch-indexers/src/main/java/org/terrier/structures/indexing/UncompressedMetaIndexBuilder.java: -------------------------------------------------------------------------------- 1 | package org.terrier.structures.indexing; 2 | import org.terrier.structures.UncompressedMetaIndex; 3 | import org.terrier.structures.IndexOnDisk; 4 | import java.io.IOException; 5 | /** 6 | * Writes all metadata as uncompressed 7 | * @since 5.5 8 | */ 9 | public class UncompressedMetaIndexBuilder extends BaseMetaIndexBuilder { 10 | 11 | public UncompressedMetaIndexBuilder(IndexOnDisk _index, String[] _keyNames, int[] _valueLens, String[] _reverseKeys) 12 | { 13 | this(_index, "meta", _keyNames, _valueLens, _reverseKeys); 14 | } 15 | 16 | public UncompressedMetaIndexBuilder(IndexOnDisk _index, String _structureName, String[] _keyNames, int[] _valueLens, String[] _reverseKeys) 17 | { 18 | super(_index, _structureName, _keyNames, _valueLens, _reverseKeys); 19 | this.structureClass = UncompressedMetaIndex.class; 20 | this.structureInputStreamClass = UncompressedMetaIndex.InputStream.class; 21 | } 22 | 23 | protected int writeData(byte[] data) throws IOException { 24 | dataOutput.write(data); 25 | return data.length; 26 | } 27 | 28 | } -------------------------------------------------------------------------------- /modules/batch-retrieval/src/main/java/org/terrier/structures/outputformat/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides functionality for writing Terrier ResultSets to disk as .res files, e.g. in TREC run formats.
27 | 28 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/matching/models/DFRNorm2BaseModel.java: -------------------------------------------------------------------------------- 1 | 2 | package org.terrier.matching.models; 3 | 4 | /** Base class for all DFR models what use Normalisation 2. To control the weight of the c length normalisation parameter, 5 | * set the dfr.c control in the SearchRequest object. 6 | */ 7 | public abstract class DFRNorm2BaseModel extends WeightingModel { 8 | /** The parameter c. This defaults to 1.0, but should be set using in the constructor 9 | * of each child weighting model to the sensible default for that weighting model. */ 10 | protected double c = 1.0d; 11 | 12 | @Override 13 | public void prepare() { 14 | if (rq != null) { 15 | if (rq.hasControl("dfr.c")) { 16 | c = Double.parseDouble(rq.getControl("dfr.c")); 17 | } 18 | } 19 | super.prepare(); 20 | } 21 | 22 | /** 23 | * Sets the c value 24 | * @param _c the term frequency normalisation parameter value. 25 | */ 26 | @Deprecated 27 | public void setParameter(double _c) { 28 | this.c = _c; 29 | } 30 | 31 | /** 32 | * Returns the parameter as set by setParameter() 33 | */ 34 | @Deprecated 35 | public double getParameter() { 36 | return this.c; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/sorting/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides the classes that implement the sorting of various arrays 27 | for the Terrier platform.
28 |Used by indexing and retrieval
29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /modules/realtime/src/main/java/org/terrier/realtime/memory/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides MemoryIndex structures. Memory indices are wholly stored in memory, are updatable and can (optionally) be written to disk.
27 | 28 | -------------------------------------------------------------------------------- /modules/tests/src/test/java/org/terrier/applications/TestCLITool.java: -------------------------------------------------------------------------------- 1 | package org.terrier.applications; 2 | 3 | import static org.junit.Assert.assertEquals; 4 | 5 | import org.apache.commons.cli.CommandLine; 6 | import org.junit.Test; 7 | import org.terrier.applications.CLITool.CLIParsedCLITool; 8 | import org.terrier.utility.ApplicationSetup; 9 | 10 | public class TestCLITool { 11 | 12 | public static class testTool extends CLIParsedCLITool 13 | { 14 | public testTool(){} 15 | 16 | @Override public int run(CommandLine line) throws Exception { 17 | return 0; 18 | } 19 | } 20 | 21 | @Test public void testOneProperty() throws Exception { 22 | ApplicationSetup.clearAllProperties(); 23 | CLITool.run(testTool.class,new String[]{"-Dfoo=bar"}); 24 | assertEquals("bar", ApplicationSetup.getProperty("foo", null)); 25 | 26 | } 27 | 28 | @Test public void testTwoProperties() throws Exception { 29 | ApplicationSetup.clearAllProperties(); 30 | CLITool.run(testTool.class,new String[]{"-Dfoo=bar", "-Dfoo2=bar2"}); 31 | assertEquals("bar", ApplicationSetup.getProperty("foo", null)); 32 | assertEquals("bar2", ApplicationSetup.getProperty("foo2", null)); 33 | 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /modules/batch-retrieval/src/main/java/org/terrier/applications/batchquerying/QuerySourceUtils.java: -------------------------------------------------------------------------------- 1 | package org.terrier.applications.batchquerying; 2 | 3 | import org.terrier.indexing.tokenisation.Tokeniser; 4 | 5 | public class QuerySourceUtils { 6 | 7 | public static QuerySource create(String[] qids, String[] qs, boolean tokenise) { 8 | return create(qids, qs, tokenise ? Tokeniser.getTokeniser() : null); 9 | } 10 | 11 | public static QuerySource create(String[] qids, String[] qs, Tokeniser tok) { 12 | return new QuerySource() { 13 | 14 | int i=-1; 15 | @Override 16 | public boolean hasNext() { 17 | return i < qids.length -1; 18 | } 19 | 20 | @Override 21 | public String next() { 22 | i++; 23 | String q = qs[i]; 24 | if (tok != null) 25 | { 26 | q = String.join(" ", tok.getTokens(q)); 27 | } 28 | return q; 29 | } 30 | 31 | @Override 32 | public String getQueryId() { 33 | return qids[i]; 34 | } 35 | 36 | @Override 37 | public void reset() { 38 | i = -1; 39 | } 40 | 41 | @Override 42 | public String[] getInfo() { 43 | return new String[]{"DirectQuerySource"}; 44 | } 45 | 46 | }; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /modules/batch-retrieval/src/main/java/org/terrier/applications/batchquerying/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Contains application-level programs for performing batch-based query operations, such as generating runs for TREC.
27 | 28 | -------------------------------------------------------------------------------- /modules/batch-indexers/src/main/java/org/terrier/structures/indexing/singlepass/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides implementation of the structures needed for performing a single 27 | pass indexing
28 | 29 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/querying/summarisation/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Package for summarisation algorithms. Classes in this package are used to 27 | generate short summaries of documents, e.g. for snippet generation.
28 | 29 | 30 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/structures/collections/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides data structures various data structures. These match are implementations compatible with 27 | Java Collections. Most are disk-backed structures.
28 | 29 | 30 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/utility/restructure/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides functionality to convert legacy Terrier indices into current indices. Currently conversion from Terrier 3.x to Terrier 4.x indices is supported.
27 | 28 | -------------------------------------------------------------------------------- /modules/realtime/src/main/java/org/terrier/realtime/matching/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides additional matching implementations specifically for real-time index structures. For instance, matching over a subset of the indices within a MultiIndex.
27 | 28 | -------------------------------------------------------------------------------- /modules/concurrent/src/test/java/org/terrier/structures/concurrent/TestShakParallelTRECQueryingMem.java: -------------------------------------------------------------------------------- 1 | package org.terrier.structures.concurrent; 2 | import org.terrier.structures.*; 3 | import org.terrier.tests.BatchEndToEndTest; 4 | import org.terrier.tests.BatchEndToEndTest.BatchEndToEndTestEventHooks; 5 | 6 | import static org.junit.Assert.assertEquals; 7 | public class TestShakParallelTRECQueryingMem extends TestShakParallelTRECQuerying { 8 | 9 | static class Hook extends BatchEndToEndTestEventHooks 10 | { 11 | public void finishedIndexing(BatchEndToEndTest test) throws Exception 12 | { 13 | IndexOnDisk iod = IndexOnDisk.createIndex(); 14 | iod.setIndexProperty("index.inverted.data-source", "fileinmem"); 15 | iod.flush(); 16 | iod.close(); 17 | } 18 | 19 | public void checkIndex(BatchEndToEndTest test, Index index) throws Exception 20 | { 21 | IndexOnDisk iod = (IndexOnDisk) index; 22 | assertEquals("fileinmem", iod.getIndexProperty("index.inverted.data-source", null)); 23 | } 24 | } 25 | 26 | public TestShakParallelTRECQueryingMem() { 27 | super(); 28 | this.testHooks.add(new Hook()); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /modules/realtime/src/main/java/org/terrier/realtime/multi/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides MultiIndex structures. A MultiIndex is a combination of many smaller indices. Each MultiIndex structure provides an abstraction over the related structure within each sub-index.
27 | 28 | -------------------------------------------------------------------------------- /modules/concurrent/src/test/java/org/terrier/structures/concurrent/TestThreadSafeManager.java: -------------------------------------------------------------------------------- 1 | package org.terrier.structures.concurrent; 2 | 3 | import static org.junit.Assert.assertTrue; 4 | 5 | import org.junit.Test; 6 | import org.terrier.indexing.IndexTestUtils; 7 | import org.terrier.querying.IndexRef; 8 | import org.terrier.querying.Manager; 9 | import org.terrier.querying.ManagerFactory; 10 | import org.terrier.querying.ThreadSafeManager; 11 | import org.terrier.structures.ConcurrentIndexLoader; 12 | import org.terrier.structures.Index; 13 | import org.terrier.structures.IndexFactory; 14 | import org.terrier.tests.ApplicationSetupBasedTest; 15 | 16 | public class TestThreadSafeManager extends ApplicationSetupBasedTest { 17 | 18 | @Test public void testOne() throws Exception 19 | { 20 | Index index = IndexTestUtils.makeIndex(new String[]{"doc1", "doc2"}, new String[]{"the quick fox", "and all that stuff"}); 21 | IndexRef ref = index.getIndexRef(); 22 | assertTrue(IndexFactory.isLoaded(ref)); 23 | System.out.println(ref.toString()); 24 | IndexRef concRef = ConcurrentIndexLoader.makeConcurrent(IndexRef.of(ref.toString())); 25 | Manager m = ManagerFactory.from(concRef); 26 | assertTrue(m instanceof ThreadSafeManager); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/querying/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides the interfaces and classes for the querying 27 | API of the Terrier platform, the controls, post processors 28 | and filters. As an example, query expansion is applied as 29 | a postprocess.
30 | 31 | 32 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/structures/seralization/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides classes for things that can be serializaed to disk. Invariably, these 27 | have a fixed-size, so that random-seeks etc can be utilised on persistent data structures.
28 | 29 | 30 | -------------------------------------------------------------------------------- /modules/batch-indexers/pom.xml: -------------------------------------------------------------------------------- 1 |Provides the classes that implement the data structures used 27 | for retrieval with the Terrier platform.
28 | 29 |These include the implementations of the inverted index, the 30 | direct index, the lexicon and the document index.
31 | 32 | 33 | -------------------------------------------------------------------------------- /modules/batch-indexers/src/main/java/org/terrier/structures/indexing/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides the classes used for creating the data structures of 27 | the Terrier platform.
28 | 29 |These include the builders of the inverted index, the 30 | direct index, the lexicon and the document index.
31 | 32 | 33 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/matching/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides the classes and interfaces used for matching documents 27 | to queries. It includes the classes that perform the matching by 28 | reading information from the inverted index etc., and the classes 29 | that model the set of retrieved documents.
30 | 31 | 32 | -------------------------------------------------------------------------------- /doc/terrier_desktop.md: -------------------------------------------------------------------------------- 1 | 2 | Introducing the Desktop Terrier example search application: 3 | ============================================= 4 | 5 | Desktop Terrier is an example application we have provided with Terrier for two purposes: 6 | 7 | - To provide a Desktop Search application that will allow users to quickly test out features of Terrier such as for example the Terrier query language. 8 | 9 | - To give developers an example of using Terrier in an interactive setting. 10 | 11 | Importantly, Desktop Terrier is only a sample application to help users become used to the functionality that Terrier provides. We do not recommend Desktop Terrier to perform large or complex indexing jobs. Instead, once you are comfortable with the Terrier functionality, indexing and batch retrieval should be performed using the command line. You have been warned. 12 | 13 | Where to obtain Desktop Terrier 14 | ------------------------ 15 | 16 | Since version 4.2, the Terrier Desktop search application is available [separately from Github](https://github.com/terrier-org/terrier-desktop). 17 | 18 | ------------------ 19 | > Webpage:Provides the interface and the classes for modifying the scores 27 | of documents after an score has been assigned to documents, or 28 | implementing the combination of evidence. The implemented classes 29 | include phrase and proximity searching.
30 | 31 | 32 | -------------------------------------------------------------------------------- /modules/index-api/TODO.md: -------------------------------------------------------------------------------- 1 | Index APIs Improvement Suggestions: 2 | 3 | * BitFilePosition: the method "void setOffset(BitFilePosition pos)" simpified to "void set(BitFilePosition pos)". 4 | * Index: transform the whole abstract class into an interface with default methods. 5 | introduce an Enum with toString() method and state for commonly used index structures. 6 | * Lexicon: the inner static class "public static class LexiconFileEntryProvides classes for merging two sets of data structures, created by Terrier, 27 | into one set of data structures. The output is equivalent to the output that would 28 | have been obtained if one set of data structures had been built.
29 | 30 | 31 | -------------------------------------------------------------------------------- /modules/realtime/src/main/java/org/terrier/realtime/incremental/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides incremental indexing functionality. An incremental index is a MultiIndex that is both updatable and can be written to disk. An incremental index has policies for deleting old indices, flushing partial indices to disk and merging on-disk indices.
27 | 28 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/matching/taat/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides classes that implement a term-at-a-time (TAAT) matching strategy. In TAAT matching, the 27 | scoring for one term is complete before scoring moves onto the next term in the query. 28 | In general, TAAT is not suitable for large indices - consider using DAAT instead.
29 | 30 | 31 | -------------------------------------------------------------------------------- /modules/retrieval-api/src/main/java/org/terrier/querying/ScoredDocList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Terrier - Terabyte Retriever 3 | * Webpage: http://terrier.org 4 | * Contact: terrier{a.}dcs.gla.ac.uk 5 | * University of Glasgow - School of Computing Science 6 | * http://www.gla.ac.uk/ 7 | * 8 | * The contents of this file are subject to the Mozilla Public License 9 | * Version 1.1 (the "License"); you may not use this file except in 10 | * compliance with the License. You may obtain a copy of the License at 11 | * http://www.mozilla.org/MPL/ 12 | * 13 | * Software distributed under the License is distributed on an "AS IS" 14 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 15 | * the License for the specific language governing rights and limitations 16 | * under the License. 17 | * 18 | * The Original Code is ScoredDocList.java. 19 | * 20 | * The Original Code is Copyright (C) 2017-2020 the University of Glasgow. 21 | * All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * Craig Macdonald 25 | */ 26 | package org.terrier.querying; 27 | 28 | import java.util.List; 29 | 30 | 31 | public interface ScoredDocList extends ListProvides classes that implement a document-at-a-time (DAAT) matching strategy. In DAAT matching, 27 | the postings lists for all query terms are processed in parallel. In general, DAAT techniques 28 | do not require as much memory during matching, and may be able to terminate early the matching process.
29 | 30 | 31 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/terms/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides the interface and classes for the term pipeline, 27 | a set of objects that process the terms during indexing and 28 | processing of queries.
29 | 30 |This package includes implementations of a stop-word remover, 31 | as well as a full and a weak version of Porter's stemming algorithm.
32 | 33 | 34 | -------------------------------------------------------------------------------- /modules/batch-retrieval/src/main/java/org/terrier/evaluation/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Provides an interface and the classes to process relevance assessments 27 | and perform standard evaluation of retrieval results. There are two 28 | types of evaluation supported. The first is based on the outuput of 29 | trec_eval and the other is for evaluation of known-item search task.
30 | 31 | 32 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/matching/matchops/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Terrier - Terabyte Retriever 3 | * Webpage: http://terrier.org 4 | * Contact: terrier{a.}dcs.gla.ac.uk 5 | * University of Glasgow - School of Computing Science 6 | * http://www.gla.ac.uk/ 7 | * 8 | * The contents of this file are subject to the Mozilla Public License 9 | * Version 1.1 (the "License"); you may not use this file except in 10 | * compliance with the License. You may obtain a copy of the License at 11 | * http://www.mozilla.org/MPL/ 12 | * 13 | * Software distributed under the License is distributed on an "AS IS" 14 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 15 | * the License for the specific language governing rights and limitations 16 | * under the License. 17 | * 18 | * The Original Code is package-info.java. 19 | * 20 | * The Original Code is Copyright (C) 2017-2020 the University of Glasgow. 21 | * All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * Craig Macdonald 25 | */ 26 | /** This package contains matching Operators. 27 | * These allow multiple entries from the inverted index posting list to be 28 | * used within a single query. In general, operators are inspired by the 29 | * Indri/Galago query language 30 | * 31 | * @since 5.0 32 | */ 33 | package org.terrier.matching.matchops; 34 | 35 | -------------------------------------------------------------------------------- /modules/tests/src/test/java/org/terrier/utility/TestVersion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Terrier - Terabyte Retriever 3 | * Webpage: http://terrier.org 4 | * Contact: terrier{a.}dcs.gla.ac.uk 5 | * University of Glasgow - School of Computing Science 6 | * http://www.gla.ac.uk/ 7 | * 8 | * The contents of this file are subject to the Mozilla Public License 9 | * Version 1.1 (the "License"); you may not use this file except in 10 | * compliance with the License. You may obtain a copy of the License at 11 | * http://www.mozilla.org/MPL/ 12 | * 13 | * Software distributed under the License is distributed on an "AS IS" 14 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 15 | * the License for the specific language governing rights and limitations 16 | * under the License. 17 | * 18 | * The Original Code is TestVersion.java. 19 | * 20 | * The Original Code is Copyright (C) 2017-2020 the University of Glasgow. 21 | * All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * Craig Macdonald 25 | */ 26 | package org.terrier.utility; 27 | 28 | import static org.junit.Assert.*; 29 | 30 | import org.junit.Test; 31 | 32 | public class TestVersion { 33 | 34 | @Test public void testVersion() 35 | { 36 | String versionString = ApplicationSetup.TERRIER_VERSION; 37 | assertTrue(versionString.contains(".")); 38 | 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /modules/realtime/src/main/java/org/terrier/realtime/memory/MemoryPostingList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Terrier - Terabyte Retriever 3 | * Webpage: http://terrier.org 4 | * Contact: terrier{a.}dcs.gla.ac.uk 5 | * University of Glasgow - School of Computing Science 6 | * http://www.gla.ac.uk/ 7 | * 8 | * The contents of this file are subject to the Mozilla Public License 9 | * Version 1.1 (the "License"); you may not use this file except in 10 | * compliance with the License. You may obtain a copy of the License at 11 | * http://www.mozilla.org/MPL/ 12 | * 13 | * Software distributed under the License is distributed on an "AS IS" 14 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 15 | * the License for the specific language governing rights and limitations 16 | * under the License. 17 | * 18 | * The Original Code is MemoryPostingList.java. 19 | * 20 | * The Original Code is Copyright (C) 2004-2020 the University of Glasgow. 21 | * All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * Richard McCreadieProvides the interface and classes that implement the term 27 | score modifiers, which modify the scores assigned to documents 28 | for a particular term. The classes include an implementation 29 | of searching for terms that appear in given fields. In general, the TermScoreModifiers 30 | is now deprecated. All implementations should use WeightingModel instead.
31 | 32 | 33 | -------------------------------------------------------------------------------- /modules/core/src/main/java/org/terrier/terms/DutchSnowballStemmer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Terrier - Terabyte Retriever 3 | * Webpage: http://terrier.org 4 | * Contact: terrier{a.}dcs.gla.ac.uk 5 | * University of Glasgow - School of Computing Science 6 | * http://www.gla.uk 7 | * 8 | * The contents of this file are subject to the Mozilla Public License 9 | * Version 1.1 (the "License"); you may not use this file except in 10 | * compliance with the License. You may obtain a copy of the License at 11 | * http://www.mozilla.org/MPL/ 12 | * 13 | * Software distributed under the License is distributed on an "AS IS" 14 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 15 | * the License for the specific language governing rights and limitations 16 | * under the License. 17 | * 18 | * The Original Code is DutchSnowballStemmer.java. 19 | * 20 | * The Original Code is Copyright (C) 2004-2020 the University of Glasgow. 21 | * All Rights Reserved. 22 | * 23 | * Contributor(s): 24 | * Craig Macdonald
33 | * Manager m = Manager.from(IndexRef.of("http://host/of/rest/"))
34 | *
35 | */
36 | package org.terrier.restclient;
37 |
38 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/terrier/structures/collections/OrderedMap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Terrier - Terabyte Retriever
3 | * Webpage: http://terrier.org/
4 | * Contact: terrier{a.}dcs.gla.ac.uk
5 | * University of Glasgow - School of Computing Science
6 | * http://www.gla.ac.uk/
7 | *
8 | * The contents of this file are subject to the Mozilla Public License
9 | * Version 1.1 (the "License"); you may not use this file except in
10 | * compliance with the License. You may obtain a copy of the License at
11 | * http://www.mozilla.org/MPL/
12 | *
13 | * Software distributed under the License is distributed on an "AS IS"
14 | * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
15 | * the License for the specific language governing rights and limitations
16 | * under the License.
17 | *
18 | * The Original Code is OrderedMap.java
19 | *
20 | * The Original Code is Copyright (C) 2004-2020 the University of Glasgow.
21 | * All Rights Reserved.
22 | *
23 | * Contributor(s):
24 | * Craig Macdonald Terrier is a modular platform for the rapid development of 27 | large-scale Information Retrieval applications, providing 28 | indexing and retrieval functionalities. Terrier is based on 29 | the Divergence from Randomness (DFR) framework. It can index 30 | various document collections, including the standard TREC 31 | collections, such as AP, WSJ, WT10G, .GOV and .GOV2. It also 32 | provides a wide range of parameter-free weighting approaches 33 | and full-text search algorithms, aiming to offer a public 34 | testbed for performing Information Retrieval experiments.
35 | 36 | 37 | --------------------------------------------------------------------------------