Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Feb 21, 2023
1 parent 3323391 commit 4df8bf6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ name = "benchmarks"
[dependencies]
bitflags = "1.3.2"
clap = "2.34.0"
ibig = "0.3.5"
ibig = "0.3.6"
num-traits = "0.2.15"
rayon = "1.5.3"
rustfst = "0.11.5"
rayon = "1.6.1"
rustfst = "0.13.1"
sesdiff = "0.3.0"
simple-error = "0.2.3"

Expand Down
8 changes: 4 additions & 4 deletions bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ license = "GPL-3.0+"
name = "analiticcl-python"
readme = "README.md"
repository = "https://github.com/proycon/analiticcl"
version = "0.4.4" #also change version in dependencies below
version = "0.4.5" #also change version in dependencies below

[lib]
name = "analiticcl"
crate-type = ["cdylib"]

[dependencies]
pyo3 = "0.13.2"
rayon = "1.5.0"
analiticcl = "0.4.4"
pyo3 = "0.18.1"
rayon = "1.6.1"
analiticcl = "0.4.5"

#compile against version in same repo: (doesn't work when building with maturin for pypi)
#[dependencies.analiticcl]
Expand Down
9 changes: 5 additions & 4 deletions bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct PyWeights {
#[pymethods]
impl PyWeights {
#[new]
#[args(kwargs = "**")]
#[pyo3(signature = (**kwargs))]
fn new(kwargs: Option<&PyDict>) -> Self {
let mut instance = Self::default();
if let Some(kwargs) = kwargs {
Expand Down Expand Up @@ -142,7 +142,7 @@ pub struct PySearchParameters {
#[pymethods]
impl PySearchParameters {
#[new]
#[args(kwargs = "**")]
#[pyo3(signature = (**kwargs))]
fn new(kwargs: Option<&PyDict>) -> Self {
let mut instance = Self::default();
if let Some(kwargs) = kwargs {
Expand Down Expand Up @@ -448,7 +448,7 @@ pub struct PyVocabParams {
#[pymethods]
impl PyVocabParams {
#[new]
#[args(kwargs = "**")]
#[pyo3(signature = (**kwargs))]
fn new(kwargs: Option<&PyDict>) -> Self {
let mut instance = Self::default();
if let Some(kwargs) = kwargs {
Expand Down Expand Up @@ -578,7 +578,7 @@ impl PyVariantModel {
#[pymethods]
impl PyVariantModel {
#[new]
#[args(alphabet_file, weights, debug = 0)]
#[pyo3(signature = (alphabet_file, weights, debug = 0))]
fn new(alphabet_file: &str, weights: PyRef<PyWeights>, debug: u8) -> Self {
Self {
model: libanaliticcl::VariantModel::new(alphabet_file, weights.weights.clone(), debug),
Expand All @@ -593,6 +593,7 @@ impl PyVariantModel {
}

/// Add an item to the vocabulary. This is a lower-level interface.
#[pyo3(signature = (text,frequency,params))]
pub fn add_to_vocabulary(
&mut self,
text: &str,
Expand Down

0 comments on commit 4df8bf6

Please sign in to comment.