jWeb1T

jWeb1T is an open source Java tool for efficiently searching n-gram data in the Web 1T 5-gram corpus format. It is based on a binary search algorithm that finds the n-grams and returns their frequency counts in logarithmic time. As the corpus is stored in many files a simple index is used to retrieve the files containing the n-grams.

License

License

GroupId

GroupId

com.googlecode.jweb1t
ArtifactId

ArtifactId

com.googlecode.jweb1t
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

jWeb1T
jWeb1T is an open source Java tool for efficiently searching n-gram data in the Web 1T 5-gram corpus format. It is based on a binary search algorithm that finds the n-grams and returns their frequency counts in logarithmic time. As the corpus is stored in many files a simple index is used to retrieve the files containing the n-grams.
Project URL

Project URL

https://dkpro.github.io/jweb1t
Source Code Management

Source Code Management

https://github.com/dkpro/jweb1t

Download com.googlecode.jweb1t

How to add to project

<!-- https://jarcasting.com/artifacts/com.googlecode.jweb1t/com.googlecode.jweb1t/ -->
<dependency>
    <groupId>com.googlecode.jweb1t</groupId>
    <artifactId>com.googlecode.jweb1t</artifactId>
    <version>1.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.googlecode.jweb1t/com.googlecode.jweb1t/
implementation 'com.googlecode.jweb1t:com.googlecode.jweb1t:1.4.0'
// https://jarcasting.com/artifacts/com.googlecode.jweb1t/com.googlecode.jweb1t/
implementation ("com.googlecode.jweb1t:com.googlecode.jweb1t:1.4.0")
'com.googlecode.jweb1t:com.googlecode.jweb1t:jar:1.4.0'
<dependency org="com.googlecode.jweb1t" name="com.googlecode.jweb1t" rev="1.4.0">
  <artifact name="com.googlecode.jweb1t" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.googlecode.jweb1t', module='com.googlecode.jweb1t', version='1.4.0')
)
libraryDependencies += "com.googlecode.jweb1t" % "com.googlecode.jweb1t" % "1.4.0"
[com.googlecode.jweb1t "1.4.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.6
pcj : pcj jar 1.2
commons-logging : commons-logging-api jar 1.1

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
commons-logging : commons-logging jar 1.1.1

Project Modules

There are no modules declared in this project.

jweb1t

jWeb1T is an open source Java tool for efficiently searching n-gram data in the Web 1T 5-gram corpus format. It is based on a binary search algorithm that finds the n-grams and returns their frequency counts in logarithmic time. As the corpus is stored in many files a simple index is used to retrieve the files containing the n-grams.

jWeb1T has been developed by Claudio Giuliano at FBK for the English Lexical Substitution Task at SemEval 2007:

Claudio Giuliano, Alfio Gliozzo and Carlo Strapparava. FBK-irst: Lexical Substitution Task Exploiting Domain and Syntagmatic Coherence. In Proceedings of the 4th Interational Workshop on Semantic Evaluations (SemEval-2007), Prague, 23-24 June 2007.

jWeb1T has been funded by X-Media Project.

The UKP Lab at Technische Universität Darmstadt has contributed several bug fixes and updates. A UIMA wrapper for jWeb1T is available as part of DKPro.

Getting it

The latest version of jWeb1T is now available via Maven Central. If you use Maven as your build tool, then you can add jWeb1T as a dependency in your pom.xml file:

<dependency>
  <groupId>com.googlecode.jweb1t</groupId>
  <artifactId>com.googlecode.jweb1t</artifactId>
  <version>1.3.0</version>
</dependency>

Usage

Prerequisites

  • Obtain or create data in Web1T format.
  • Unzip
  • Delete zipped files (if still present)

Creating necessary indexes

JWeb1TIndexer indexer = new JWeb1TIndexer(PATH_TO_DATA, MAX_NGRAM_LEVEL);
indexer.create();

Getting n-gram counts

JWeb1TSearcher web1t = new JWeb1TSearcher (
    INDEX_FILE_1
    INDEX_FILE_2
    ...
    INDEX_FILE_N
);

web1t.getFrequency("test phrase")
com.googlecode.jweb1t

DKPro

Versions

Version
1.4.0
1.3.0
1.2.1
1.2.0