Skip to content

Commit

Permalink
Prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jun 7, 2017
1 parent 927c9f4 commit a06c634
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
9 changes: 5 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Package: cld3
Type: Package
Title: Google's Compact Language Detector 3
Version: 0.9000
Version: 1.0
Authors@R: c(
person("Jeroen", "Ooms", ,"jeroen@berkeley.edu", role = c("aut", "cre")),
person("Google Inc", role = "cph", comment = "CLD3 C++ library")
)
Description: Google's Compact Language Detector 3 is a neural network model for language
identification and the successor of CLD2 (available from) CRAN. This version is still
experimental and takes a novell approach to language detection with different properties
and outcomes. See <https://github.com/google/cld3#readme> for more information.
identification and the successor of 'cld2' (available from CRAN). The algorithm is still
experimental and takes a novel approach to language detection with different properties
and outcomes. It can be useful to combine this with the Bayesian classifier results
from 'cld2'. See <https://github.com/google/cld3#readme> for more information.
License: Apache License 2.0
Encoding: UTF-8
LazyData: true
Expand Down
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,38 @@ cld3> detect_language_mixed("This piece of text is in English. Този текс
2 en 0.9999790 TRUE 0.4146341
3 und 0.0000000 FALSE 0.0000000
```



## Installation

Binary packages for __OS-X__ or __Windows__ can be installed directly from CRAN:

```r
install.packages("protolite")
```

Installation from source on Linux or OSX requires Google's [Protocol Buffers](https://developers.google.com/protocol-buffers/) library. On __Debian or Ubuntu__ install [libprotobuf-dev](https://packages.debian.org/testing/libprotobuf-dev) and [protobuf-compiler](https://packages.debian.org/testing/protobuf-compiler):

```
sudo apt-get install -y libprotobuf-dev protobuf-compiler
```

On __Fedora__ we need [protobuf-devel](https://apps.fedoraproject.org/packages/protobuf-devel):

```
sudo yum install protobuf-devel
````

On __CentOS / RHEL__ we install [protobuf-devel](https://apps.fedoraproject.org/packages/protobuf-devel) via EPEL:

```
sudo yum install epel-release
sudo yum install protobuf-devel
```

On __OS-X__ use [protobuf](https://github.com/Homebrew/homebrew-core/blob/master/Formula/protobuf.rb) from Homebrew:

```
brew install protobuf
```

0 comments on commit a06c634

Please sign in to comment.