Skip to content

Commit

Permalink
Update dependencies and remove examples + benches (#46)
Browse files Browse the repository at this point in the history
* Update dependencies and remove examples + benches

* Update README

* Fix clippy issues
  • Loading branch information
adrienball authored Apr 29, 2024
1 parent 35145fe commit bb13573
Show file tree
Hide file tree
Showing 13 changed files with 136 additions and 407 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI

on:
pull_request:
push:
branches:
- 'main'
schedule:
- cron: '0 9 * * *'

jobs:
fmt:
name: Rust fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.74.0
components: rustfmt
- name: Cargo fmt check
run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.74.0
components: clippy
- name: Cargo Clippy
run: cargo clippy -- -D warnings

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.74.0
- name: Cargo build
run: cargo build

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.74.0
- name: Cargo test
run: cargo test




14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

22 changes: 4 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,10 @@ debug = true

[dependencies]
failure = "0.1"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
rmp-serde = "0.13"
fnv = "1.0"
serde_json = "1"
serde = { version = "1", features = ["derive"] }
rmp-serde = "1"
fnv = "1"

[dev-dependencies]
criterion = "0.2"
dinghy-test = "0.4"
rand = "0.7"
tempfile = "3"
clap = "2"

[[bench]]
name = "bench_parser"
harness = false

[[example]]
name = "interactive_parsing_cli"

[[example]]
name = "entity_parsing_from_scratch"
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Gazetteer Entity Parser
=======================

.. image:: https://travis-ci.org/snipsco/gazetteer-entity-parser.svg?branch=master
:target: https://travis-ci.org/snipsco/gazetteer-entity-parser
**THIS LIBRARY IS NOT ACTIVELY MAINTAINED ANYMORE**

This Rust library allows to parse and resolve entity values based on a gazetteer, in the context of
an `Information Extraction <https://en.wikipedia.org/wiki/Information_extraction>`_ task.
Expand Down
157 changes: 0 additions & 157 deletions benches/bench_parser.rs

This file was deleted.

1 change: 0 additions & 1 deletion data/benches/.gitignore

This file was deleted.

47 changes: 0 additions & 47 deletions examples/entity_parsing_from_scratch.rs

This file was deleted.

Loading

0 comments on commit bb13573

Please sign in to comment.