Revision 76b5e27dc0a32d1b2c1d3de44a892ad55829b861 authored by Luca Foppiano on 04 November 2017, 12:09:04 UTC, committed by Luca Foppiano on 04 November 2017, 12:09:04 UTC

Former-commit-id: 0c47592bf9233293bb667c7354dd8d993ff7e4d2
1 parent 837f401
Raw File
Install-Grobid.md
<h1>Install GROBID</h1>>

##Getting GROBID


###Latest stable release

The [latest stable release](https://github.com/kermitt2/grobid#latest-version) of GROBID is version ```0.4.4``` which can be downloaded as follow: 
```bash
> wget https://github.com/kermitt2/grobid/archive/grobid-parent-0.4.4.zip
> unzip grobid-grobid-parent-0.4.4.zip
```

or using the [docker](Grobid-docker.md) container. 

###Current development version
The current development version is ```0.5.0-SNAPSHOT```, which can be downloaded from GitHub and built as follow:

Clone source code from github:
```bash
> git clone https://github.com/kermitt2/grobid.git
```

Or download directly the zip file:
```bash
> wget https://github.com/kermitt2/grobid/zipball/master
> unzip master
```

##Build GROBID

**Please make sure that grobid is installed in a path with no parent directories containing spaces.**

###Build GROBID with Gradle 

The standard method for building GROBID is to use gradle. Under the main directory `grobid/`:
```bash
> ./gradlew clean install
```
By default, tests are ignored. For building the project and running the tests, use:
```bash
> ./gradlew clean install test
```

[//]: # ###Build GROBID with ant
[//]: # 
[//]: # It is also possible to build the project with ant. This could be useful for integrating Grobid in an ant project, or when no internet connection is available in a secure development environment, or for people allergic to useless pain. Supported ant targets are `compile`, `clean`, `test` and `package`. So the following should work: 
[//]: # ```bash
[//]: # > ant package
[//]: # ```

##Use GROBID

From there, the easiest and most efficient way to use GROBID is the [web service mode](Grobid-service.md). You can also use the tool in [batch mode](Grobid-batch.md) or integrate it in your Java project via the [Java API](Grobid-java-library.md). 


back to top