diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6298032 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +PKG-INFO +*.egg-info +setup.cfg +*.py[co] diff --git a/BUILD.bazel b/BUILD.bazel index 4edbdf0..6939716 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2022 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/PKG-INFO b/PKG-INFO deleted file mode 100644 index a53d72e..0000000 --- a/PKG-INFO +++ /dev/null @@ -1,125 +0,0 @@ -Metadata-Version: 2.1 -Name: pynini -Version: 2.1.6 -Summary: Finite-state grammar compilation -Home-page: http://pynini.opengrm.org -Author: Kyle Gorman -Author-email: kbg@google.com -License: Apache 2.0 -Project-URL: homepage, https://pynini.opengrm.org -Keywords: computational linguistics,morphology,natural language processing,language -Classifier: Programming Language :: Python :: 3.6 -Classifier: Programming Language :: Python :: 3.7 -Classifier: Programming Language :: Python :: 3.8 -Classifier: Programming Language :: Python :: 3.9 -Classifier: Programming Language :: Python :: 3.10 -Classifier: Programming Language :: Python :: 3.11 -Classifier: Programming Language :: Python :: 3.12 -Classifier: Development Status :: 5 - Production/Stable -Classifier: Environment :: Other Environment -Classifier: Environment :: Console -Classifier: Intended Audience :: Developers -Classifier: License :: OSI Approved :: Apache Software License -Classifier: Operating System :: OS Independent -Classifier: Topic :: Software Development :: Libraries :: Python Modules -Classifier: Topic :: Text Processing :: Linguistic -Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence -Classifier: Topic :: Scientific/Engineering :: Mathematics -Requires-Python: >=3.6 -Description-Content-Type: text/markdown -License-File: LICENSE -License-File: AUTHORS - -# OpenGrm Pynini - -This is a a Python extension module for compiling, optimizing and applying -grammar rules. Rules can be compiled into weighted finite state transducers, -pushdown transducers, or multi-pushdown transducers. It uses OpenFst -finite-state transducers (FSTs) and FST archives (FArs) as inputs and outputs. - -This library is primarily developed by [Kyle Gorman](mailto:kbg@google.com). - -If you use Pynini in your research, we would appreciate if you cite the -following paper: - -> K. Gorman. 2016. -> [Pynini: A Python library for weighted finite-state grammar compilation](http://openfst.cs.nyu.edu/twiki/pub/GRM/Pynini/pynini-paper.pdf). -> In *Proc. ACL Workshop on Statistical NLP and Weighted Automata*, 75-80. - -(Note that some of the code samples in the paper are now out of date and not -expected to work.) - -## Dependencies - -- A standards-compliant C++17 compiler (GCC \>= 7 or Clang \>= 700) -- The compatible recent version of [OpenFst](http://openfst.org) (see - [`NEWS`](NEWS) for this) built with the `grm` extensions (i.e., built with - `./configure --enable-grm`) and headers -- [Python 3.6+](https://www.python.org) and headers - -## Installation instructions - -There are various ways to install Pynini depending on your platform. - -### Windows - -While Pynini is neither designed for nor tested on Windows, it can be installed -using the -[Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -(WSL). Simply enter the WSL environment and follow the Linux instructions below. - -### MacOS - -The pre-compiled library can be installed from -[`conda-forge`](https://conda-forge.org/) by running `conda install -c -conda-forge pynini`. - -Alternatively, one can build from source from [PyPI](https://pypi.org/) by -running `pip install pynini`. - -Finally, one can use [Bazel](https://bazel.build) to build from source by -running `bazel build //:all` anywhere in the source tree. - -### Linux - -The pre-compiled library can be installed from -[`conda-forge`](https://conda-forge.org/) by running `conda install -c -conda-forge pynini`. - -Alternatively, one can install a pre-compiled -[`manylinux`](https://github.com/pypa/manylinux) wheel from -[PyPI](https://pypi.org/) by running `pip install pynini`. This will install the -pre-compiled `manylinux` wheel (if available for the release and compatible with -your platform), and build and install from source if not. Unlike the -`conda-forge` option above, which also installs [OpenFst](http://openfst.org/) -and [Graphviz](https://graphviz.org/), this does not install the OpenFst or -Graphviz command-line tools. See the enclosed -[`Dockerfile`](third_party/Dockerfile) for instructions for building and -deploying `manylinux` wheels. - -Finally, one can use [Bazel](https://bazel.build) to build from source by -running `bazel build //:all` anywhere in the source tree. - -## Testing - -To confirm successful installation, run `pip install -r requirements`, then -`python tests/pynini_test.py`. If all tests pass, the final line will read `OK`; -a successful run will log some errors to STDERR (this is working as expected). - -## Python version support - -Pynini 2.0.0 and onward support Python 3. Pynini 2.1 versions (onward) drop -Python 2 support. The current release supports Python 3.6--3.12. - -# License - -Pynini is released under the Apache license. See [`LICENSE`](LICENSE) for more -information. - -# Interested in contributing? - -See [`CONTRIBUTING`](CONTRIBUTING) for more information. - -# Mandatory disclaimer - -This is not an official Google product. diff --git a/README.md b/README.md index 8576972..04bb507 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ a successful run will log some errors to STDERR (this is working as expected). ## Python version support Pynini 2.0.0 and onward support Python 3. Pynini 2.1 versions (onward) drop -Python 2 support. The current release supports Python 3.6--3.12. +Python 2 support. The current release supports Python 3.8--3.13. # License diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 27a66fd..0c6b70a 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2020 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/bazel/BUILD.bazel b/bazel/BUILD.bazel index 199f729..28d8162 100644 --- a/bazel/BUILD.bazel +++ b/bazel/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2022 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/bazel/cython.BUILD.bazel b/bazel/cython.BUILD.bazel index 240421c..c2962ed 100644 --- a/bazel/cython.BUILD.bazel +++ b/bazel/cython.BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2020 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -42,4 +42,4 @@ py_binary( srcs_version = "PY3", visibility = ["//visibility:public"], deps = ["cython_lib"], -) \ No newline at end of file +) diff --git a/bazel/six.BUILD.bazel b/bazel/six.BUILD.bazel index baa03d1..8365f65 100644 --- a/bazel/six.BUILD.bazel +++ b/bazel/six.BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2020 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/bazel/workspace.bzl b/bazel/workspace.bzl index 63e0a56..f6778a7 100644 --- a/bazel/workspace.bzl +++ b/bazel/workspace.bzl @@ -1,4 +1,4 @@ -# Copyright 2015-2020 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -103,7 +103,7 @@ def pynini_repositories(name = ""): # OpenFst: See # http://www.openfst.org/twiki/pub/FST/FstDownload/README # ------------------------------------------------------------------------- - openfst_version = "1.8.2" + openfst_version = "1.8.3" http_archive( name = "org_openfst", diff --git a/extensions/_pynini.cpp b/extensions/_pynini.cpp index e07bcfc..9aa59fe 100644 --- a/extensions/_pynini.cpp +++ b/extensions/_pynini.cpp @@ -1,4 +1,4 @@ -/* Generated by Cython 3.0.7 */ +/* Generated by Cython 3.0.10 */ /* BEGIN: Cython Metadata { @@ -88,10 +88,10 @@ END: Cython Metadata */ #else #define __PYX_EXTRA_ABI_MODULE_NAME "" #endif -#define CYTHON_ABI "3_0_7" __PYX_EXTRA_ABI_MODULE_NAME +#define CYTHON_ABI "3_0_10" __PYX_EXTRA_ABI_MODULE_NAME #define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI #define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "." -#define CYTHON_HEX_VERSION 0x030007F0 +#define CYTHON_HEX_VERSION 0x03000AF0 #define CYTHON_FUTURE_DIVISION 1 #include #ifndef offsetof @@ -183,6 +183,8 @@ END: Cython Metadata */ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif + #undef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 #elif defined(PYPY_VERSION) #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_CPYTHON 0 @@ -244,6 +246,8 @@ END: Cython Metadata */ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif + #undef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 #elif defined(CYTHON_LIMITED_API) #ifdef Py_LIMITED_API #undef __PYX_LIMITED_VERSION_HEX @@ -305,6 +309,8 @@ END: Cython Metadata */ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif + #undef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 #elif defined(Py_GIL_DISABLED) || defined(Py_NOGIL) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 0 @@ -314,11 +320,17 @@ END: Cython Metadata */ #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif + #ifndef CYTHON_USE_TYPE_SPECS + #define CYTHON_USE_TYPE_SPECS 0 + #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #ifndef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 1 #endif + #ifndef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS @@ -326,8 +338,6 @@ END: Cython Metadata */ #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 - #undef CYTHON_USE_PYLONG_INTERNALS - #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif @@ -339,11 +349,22 @@ END: Cython Metadata */ #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_GIL + #define CYTHON_FAST_GIL 0 + #ifndef CYTHON_METH_FASTCALL + #define CYTHON_METH_FASTCALL 1 + #endif #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 + #ifndef CYTHON_PEP487_INIT_SUBCLASS + #define CYTHON_PEP487_INIT_SUBCLASS 1 + #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 1 #endif + #ifndef CYTHON_USE_MODULE_STATE + #define CYTHON_USE_MODULE_STATE 0 + #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 1 #endif @@ -351,6 +372,12 @@ END: Cython Metadata */ #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 + #endif + #ifndef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 + #endif #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 1 @@ -441,6 +468,9 @@ END: Cython Metadata */ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 #endif + #ifndef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 1 + #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) @@ -649,14 +679,14 @@ class __Pyx_FakeReference { PyObject *exception_table = NULL; PyObject *types_module=NULL, *code_type=NULL, *result=NULL; #if __PYX_LIMITED_VERSION_HEX < 0x030B0000 - PyObject *version_info; // borrowed + PyObject *version_info; PyObject *py_minor_version = NULL; #endif long minor_version = 0; PyObject *type, *value, *traceback; PyErr_Fetch(&type, &value, &traceback); #if __PYX_LIMITED_VERSION_HEX >= 0x030B0000 - minor_version = 11; // we don't yet need to distinguish between versions > 11 + minor_version = 11; #else if (!(version_info = PySys_GetObject("version_info"))) goto end; if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end; @@ -714,7 +744,7 @@ class __Pyx_FakeReference { PyObject *fv, PyObject *cell, PyObject* fn, PyObject *name, int fline, PyObject *lnos) { PyCodeObject *result; - PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); // we don't have access to __pyx_empty_bytes here + PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); if (!empty_bytes) return NULL; result = #if PY_VERSION_HEX >= 0x030C0000 @@ -800,8 +830,13 @@ class __Pyx_FakeReference { typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames); #else - #define __Pyx_PyCFunctionFast _PyCFunctionFast - #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords + #if PY_VERSION_HEX >= 0x030d00A4 + # define __Pyx_PyCFunctionFast PyCFunctionFast + # define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords + #else + # define __Pyx_PyCFunctionFast _PyCFunctionFast + # define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords + #endif #endif #if CYTHON_METH_FASTCALL #define __Pyx_METH_FASTCALL METH_FASTCALL @@ -1153,7 +1188,7 @@ static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o) #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o) #endif -#if PY_VERSION_HEX >= 0x030d00A1 +#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1 #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name) #else static CYTHON_INLINE PyObject *__Pyx_PyImport_AddModuleRef(const char *name) { @@ -1240,7 +1275,7 @@ static CYTHON_INLINE float __PYX_NAN() { #endif #define __PYX_MARK_ERR_POS(f_index, lineno) \ - { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; } + { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; } #define __PYX_ERR(f_index, lineno, Ln_error) \ { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; } @@ -1393,24 +1428,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) -#if CYTHON_COMPILING_IN_LIMITED_API -static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const wchar_t *u) -{ - const wchar_t *u_end = u; - while (*u_end++) ; - return (size_t)(u_end - u - 1); -} -#else -static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) -{ - const Py_UNICODE *u_end = u; - while (*u_end++) ; - return (size_t)(u_end - u - 1); -} -#endif #define __Pyx_PyUnicode_FromOrdinal(o) PyUnicode_FromOrdinal((int)o) -#define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) -#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) @@ -1460,7 +1478,7 @@ static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*); #endif typedef Py_ssize_t __Pyx_compact_pylong; typedef size_t __Pyx_compact_upylong; - #else // Py < 3.12 + #else #define __Pyx_PyLong_IsNeg(x) (Py_SIZE(x) < 0) #define __Pyx_PyLong_IsNonNeg(x) (Py_SIZE(x) >= 0) #define __Pyx_PyLong_IsZero(x) (Py_SIZE(x) == 0) @@ -3775,8 +3793,8 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int #define __Pyx_Arg_NewRef_VARARGS(arg) __Pyx_NewRef(arg) #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg) #else - #define __Pyx_Arg_NewRef_VARARGS(arg) arg // no-op - #define __Pyx_Arg_XDECREF_VARARGS(arg) // no-op - arg is borrowed + #define __Pyx_Arg_NewRef_VARARGS(arg) arg + #define __Pyx_Arg_XDECREF_VARARGS(arg) #endif #define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds) #define __Pyx_KwValues_VARARGS(args, nargs) NULL @@ -3792,8 +3810,9 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int #else #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw) #endif - #define __Pyx_Arg_NewRef_FASTCALL(arg) arg // no-op, __Pyx_Arg_FASTCALL is direct and this needs - #define __Pyx_Arg_XDECREF_FASTCALL(arg) // no-op - arg was returned from array + #define __Pyx_Arg_NewRef_FASTCALL(arg) arg /* no-op, __Pyx_Arg_FASTCALL is direct and this needs + to have the same reference counting */ + #define __Pyx_Arg_XDECREF_FASTCALL(arg) #else #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS @@ -4045,7 +4064,7 @@ typedef struct { #endif void *defaults; int defaults_pyobjects; - size_t defaults_size; // used by FusedFunction for copying defaults + size_t defaults_size; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; @@ -4158,22 +4177,22 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *); #endif /* TypeImport.proto */ -#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_7 -#define __PYX_HAVE_RT_ImportType_proto_3_0_7 +#ifndef __PYX_HAVE_RT_ImportType_proto_3_0_10 +#define __PYX_HAVE_RT_ImportType_proto_3_0_10 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L #include #endif #if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) || __cplusplus >= 201103L -#define __PYX_GET_STRUCT_ALIGNMENT_3_0_7(s) alignof(s) +#define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) alignof(s) #else -#define __PYX_GET_STRUCT_ALIGNMENT_3_0_7(s) sizeof(void*) +#define __PYX_GET_STRUCT_ALIGNMENT_3_0_10(s) sizeof(void*) #endif -enum __Pyx_ImportType_CheckSize_3_0_7 { - __Pyx_ImportType_CheckSize_Error_3_0_7 = 0, - __Pyx_ImportType_CheckSize_Warn_3_0_7 = 1, - __Pyx_ImportType_CheckSize_Ignore_3_0_7 = 2 +enum __Pyx_ImportType_CheckSize_3_0_10 { + __Pyx_ImportType_CheckSize_Error_3_0_10 = 0, + __Pyx_ImportType_CheckSize_Warn_3_0_10 = 1, + __Pyx_ImportType_CheckSize_Ignore_3_0_10 = 2 }; -static PyTypeObject *__Pyx_ImportType_3_0_7(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_7 check_size); +static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject* module, const char *module_name, const char *class_name, size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size); #endif /* GetVTable.proto */ @@ -4497,7 +4516,7 @@ static unsigned long __Pyx_get_runtime_version(void); static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer); /* FunctionImport.proto */ -static int __Pyx_ImportFunction_3_0_7(PyObject *module, const char *funcname, void (**f)(void), const char *sig); +static int __Pyx_ImportFunction_3_0_10(PyObject *module, const char *funcname, void (**f)(void), const char *sig); /* InitStrings.proto */ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); @@ -4608,12 +4627,12 @@ static std::pair __pyx_convert_pair_from_py_int64_t__and_int64 static std::vector > __pyx_convert_vector_from_py_std_3a__3a_pair_3c_int64_t_2c_int64_t_3e___(PyObject *); /*proto*/ static PyObject *__pyx_convert_vector_to_py_int64_t(std::vector const &); /*proto*/ static std::vector __pyx_convert_vector_from_py_int64_t(PyObject *); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &); /*proto*/ -static std::string __pyx_convert_string_from_py_std__in_string(PyObject *); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(PyObject *); /*proto*/ static std::vector __pyx_convert_vector_from_py_std_3a__3a_string(PyObject *); /*proto*/ /* #### Code section: typeinfo ### */ /* #### Code section: before_global_var ### */ @@ -9042,24 +9061,24 @@ static std::vector __pyx_convert_vector_from_py_int64_t(PyObject *__py /* "string.to_py":31 * - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyObject_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":32 - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyUnicode_FromStringAndSize(const char*, size_t) @@ -9073,8 +9092,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin /* "string.to_py":31 * - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -9082,7 +9101,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyObject_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9092,24 +9111,24 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin /* "string.to_py":37 * - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyUnicode_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":38 - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyStr_FromStringAndSize(const char*, size_t) @@ -9123,8 +9142,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri /* "string.to_py":37 * - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -9132,7 +9151,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyUnicode_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9142,24 +9161,24 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri /* "string.to_py":43 * - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyStr_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":44 - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyBytes_FromStringAndSize(const char*, size_t) @@ -9173,8 +9192,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s /* "string.to_py":43 * - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -9182,7 +9201,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyStr_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9192,24 +9211,24 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s /* "string.to_py":49 * - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyBytes_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":50 - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyByteArray_FromStringAndSize(const char*, size_t) @@ -9223,8 +9242,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string /* "string.to_py":49 * - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -9232,7 +9251,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyBytes_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9242,24 +9261,24 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string /* "string.to_py":55 * - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) * */ -static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyByteArray_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":56 - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * */ @@ -9272,8 +9291,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_st /* "string.to_py":55 * - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) * */ @@ -9281,7 +9300,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_st /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyByteArray_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9291,13 +9310,13 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_st /* "string.from_py":13 * - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ -static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v_o) { +static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(PyObject *__pyx_v_o) { Py_ssize_t __pyx_v_length; char const *__pyx_v_data; std::string __pyx_r; @@ -9308,8 +9327,8 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v int __pyx_clineno = 0; /* "string.from_py":14 - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: * cdef Py_ssize_t length = 0 # <<<<<<<<<<<<<< * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) * return string(data, length) @@ -9317,7 +9336,7 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v __pyx_v_length = 0; /* "string.from_py":15 - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) # <<<<<<<<<<<<<< * return string(data, length) @@ -9344,15 +9363,15 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v /* "string.from_py":13 * - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ /* function exit code */ __pyx_L1_error:; - __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_pretend_to_initialize(&__pyx_r); __pyx_L0:; return __pyx_r; @@ -9450,7 +9469,7 @@ static std::vector __pyx_convert_vector_from_py_std_3a__3a_string( * return v * */ - __pyx_t_5 = __pyx_convert_string_from_py_std__in_string(__pyx_v_item); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_v_item); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 48, __pyx_L1_error) try { __pyx_v_v.push_back(((std::string)__pyx_t_5)); } catch(...) { @@ -9540,7 +9559,7 @@ static fst::TokenType __pyx_f_7_pynini__get_token_type(std::string const &__pyx_ */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_token_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_token_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Unknown_token_type, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 176, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -9662,7 +9681,7 @@ static fst::CDRewriteDirection __pyx_f_7_pynini__get_cdrewrite_direction(std::st * return _direction * */ - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_direction); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 201, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_direction); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Unknown_context_dependent_rewrit, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 201, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -9784,7 +9803,7 @@ static fst::CDRewriteMode __pyx_f_7_pynini__get_cdrewrite_mode(std::string const * return _mode * */ - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_mode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 225, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_mode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Unknown_context_dependent_rewrit_2, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 225, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -9898,7 +9917,7 @@ static fst::PdtComposeFilter __pyx_f_7_pynini__get_pdt_compose_filter(std::strin */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_compose_filter); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_compose_filter); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Unknown_PDT_compose_filter_type, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 246, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -10012,7 +10031,7 @@ static fst::PdtParserType __pyx_f_7_pynini__get_pdt_parser_type(std::string cons */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_pdt_parser_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 269, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_pdt_parser_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyUnicode_Concat(__pyx_kp_u_Unknown_PDT_parser_type, __pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -11951,7 +11970,7 @@ static std::string __pyx_f_7_pynini_3Fst_string(struct __pyx_obj_7_pynini_Fst *_ __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 463, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 463, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -12283,7 +12302,7 @@ static PyObject *__pyx_pf_7_pynini_3Fst_12string(struct __pyx_obj_7_pynini_Fst * __pyx_t_2.__pyx_n = 1; __pyx_t_2.token_type = __pyx_v_token_type; __pyx_t_1 = __pyx_vtabptr_7_pynini_Fst->string(__pyx_v_self, 1, &__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 463, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 463, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 463, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; @@ -13173,7 +13192,7 @@ static PyObject *__pyx_pf_7_pynini_3Fst_18concat(struct __pyx_obj_7_pynini_Fst * __PYX_ERR(0, 633, __pyx_L1_error) } __pyx_t_1 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v_self), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 633, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 633, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 633, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_4.__pyx_n = 1; __pyx_t_4.arc_type = __pyx_t_2; @@ -13628,7 +13647,7 @@ static PyObject *__pyx_gb_7_pynini_3Fst_5union_2generator6(__pyx_CoroutineObject __PYX_ERR(0, 682, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_cur_scope->__pyx_outer_scope->__pyx_v_self->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_cur_scope->__pyx_outer_scope->__pyx_v_self), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 682, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 682, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 682, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_6.__pyx_n = 1; __pyx_t_6.arc_type = __pyx_t_3; @@ -15561,7 +15580,7 @@ static PyObject *__pyx_f_7_pynini__compile_or_copy_two_Fsts(PyObject *__pyx_v_fs __PYX_ERR(0, 790, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst1->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst1), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 790, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 790, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 790, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_7.__pyx_n = 1; __pyx_t_7.arc_type = __pyx_t_2; @@ -15647,7 +15666,7 @@ static PyObject *__pyx_f_7_pynini__compile_or_copy_two_Fsts(PyObject *__pyx_v_fs __PYX_ERR(0, 793, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst2->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst2), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 793, __pyx_L1_error) - __pyx_t_8 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 793, __pyx_L1_error) + __pyx_t_8 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 793, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_8); if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_arc_type, __pyx_t_8) < 0) __PYX_ERR(0, 793, __pyx_L1_error) __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; @@ -16643,7 +16662,7 @@ static PyObject *__pyx_pf_7_pynini_6escape(CYTHON_UNUSED PyObject *__pyx_self, P __Pyx_RefNannySetupContext("escape", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7_pynini_escape(__pyx_v_data, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 831, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 831, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 831, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -17245,7 +17264,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_cross(PyObject *__pyx_v_f __PYX_ERR(0, 938, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst1->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst1), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 938, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 938, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 938, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -17534,7 +17553,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_cdrewrite(PyObject *__pyx * cdef Fst _l = _compile_or_copy_Fst(l, arc_type) * cdef Fst _r = _compile_or_copy_Fst(r, arc_type) */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_arc_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 984, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_arc_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 984, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4.__pyx_n = 1; __pyx_t_4.arc_type = __pyx_t_1; @@ -17551,7 +17570,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_cdrewrite(PyObject *__pyx * cdef Fst _r = _compile_or_copy_Fst(r, arc_type) * cdef Fst result = Fst(arc_type) */ - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_arc_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 985, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_arc_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 985, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_4.__pyx_n = 1; __pyx_t_4.arc_type = __pyx_t_3; @@ -17568,7 +17587,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_cdrewrite(PyObject *__pyx * cdef Fst result = Fst(arc_type) * cdef _CDRewriteDirection _direction = _get_cdrewrite_direction(tostring( */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_arc_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 986, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_arc_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4.__pyx_n = 1; __pyx_t_4.arc_type = __pyx_t_1; @@ -17585,7 +17604,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_cdrewrite(PyObject *__pyx * cdef _CDRewriteDirection _direction = _get_cdrewrite_direction(tostring( * direction)) */ - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_arc_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 987, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_arc_type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 987, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); @@ -18048,7 +18067,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_leniently_compose(PyObjec __PYX_ERR(0, 1036, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__mu->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__mu), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1036, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1036, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_7.__pyx_n = 1; __pyx_t_7.arc_type = __pyx_t_1; @@ -18089,7 +18108,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_leniently_compose(PyObjec __PYX_ERR(0, 1041, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__mu->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__mu), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1041, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1041, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1041, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); @@ -19373,7 +19392,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_string_map(PyObject *__py * _lines.push_back([tostring(elem) for elem in line]) */ __pyx_t_5 = __pyx_f_10_pywrapfst_tostring(__pyx_v_line); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1192, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1192, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_9 = PyList_New(1); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1192, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_9); @@ -19465,7 +19484,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_string_map(PyObject *__py __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_elem, __pyx_t_13); __pyx_t_13 = 0; __pyx_t_5 = __pyx_f_10_pywrapfst_tostring(__pyx_8genexpr1__pyx_v_elem); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1194, __pyx_L10_error) - __pyx_t_13 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1194, __pyx_L10_error) + __pyx_t_13 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_5); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1194, __pyx_L10_error) __Pyx_GOTREF(__pyx_t_13); if (unlikely(__Pyx_ListComp_Append(__pyx_t_9, (PyObject*)__pyx_t_13))) __PYX_ERR(0, 1194, __pyx_L10_error) __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; @@ -19856,7 +19875,7 @@ static PyObject *__pyx_pf_7_pynini_23_PointerSymbolTableView___repr__(struct __p __PYX_ERR(0, 1224, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_7_pynini__PointerSymbolTableView *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.name(((struct __pyx_obj_10_pywrapfst_SymbolTableView *)__pyx_v_self), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1224, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1224, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_5), __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); @@ -25733,7 +25752,7 @@ static PyObject *__pyx_pf_7_pynini_38pdt_compose(CYTHON_UNUSED PyObject *__pyx_s __PYX_ERR(0, 1561, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst1->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst1), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1561, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1561, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1561, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -26098,7 +26117,7 @@ static PyObject *__pyx_pf_7_pynini_40pdt_expand(CYTHON_UNUSED PyObject *__pyx_se __PYX_ERR(0, 1608, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1608, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1608, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1608, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -26399,7 +26418,7 @@ static PyObject *__pyx_f_7_pynini__pdt_replace(PyObject *__pyx_v_pairs, struct _ * cdef PdtParentheses result_parens = PdtParentheses() * Replace(_pairs, */ - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string((__pyx_v__pairs[0]).second->ArcType()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1631, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string((__pyx_v__pairs[0]).second->ArcType()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_4 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1631, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); @@ -26993,7 +27012,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_pdt_reverse(PyObject *__p __PYX_ERR(0, 1715, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1715, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1715, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1715, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -27288,7 +27307,7 @@ static PyObject *__pyx_f_7_pynini_pdt_shortestpath(PyObject *__pyx_v_fst, struct __PYX_ERR(0, 1751, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1751, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1751, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1751, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -29652,7 +29671,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_mpdt_compose(PyObject *__ __PYX_ERR(0, 1909, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst1->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst1), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1909, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1909, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1909, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -30063,7 +30082,7 @@ static struct __pyx_obj_7_pynini_Fst *__pyx_f_7_pynini_mpdt_expand(PyObject *__p __PYX_ERR(0, 1954, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1954, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1954, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1954, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -30538,7 +30557,7 @@ static PyObject *__pyx_pf_7_pynini_52mpdt_reverse(CYTHON_UNUSED PyObject *__pyx_ __PYX_ERR(0, 1986, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini_Fst *)__pyx_v__fst->__pyx_base.__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.__pyx_base.arc_type(((struct __pyx_obj_10_pywrapfst_Fst *)__pyx_v__fst), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1986, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1986, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_t_3 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_7_pynini_Fst), __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1986, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -31883,7 +31902,7 @@ static std::string __pyx_f_7_pynini_19_StringPathIterator_istring(struct __pyx_o __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2114, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2114, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -31990,7 +32009,7 @@ static PyObject *__pyx_pf_7_pynini_19_StringPathIterator_12istring(struct __pyx_ __Pyx_RefNannySetupContext("istring", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7_pynini_19_StringPathIterator_istring(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2114, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2114, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2114, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -32143,7 +32162,7 @@ static PyObject *__pyx_gb_7_pynini_19_StringPathIterator_16generator2(__pyx_Coro __PYX_ERR(0, 2138, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini__StringPathIterator *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->istring(__pyx_cur_scope->__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2138, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2138, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2138, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; @@ -32336,14 +32355,14 @@ static PyObject *__pyx_gb_7_pynini_19_StringPathIterator_19generator3(__pyx_Coro __PYX_ERR(0, 2155, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini__StringPathIterator *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->istring(__pyx_cur_scope->__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2155, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2155, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); if (unlikely(((PyObject *)__pyx_cur_scope->__pyx_v_self) == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "ostring"); __PYX_ERR(0, 2155, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini__StringPathIterator *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->ostring(__pyx_cur_scope->__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2155, __pyx_L1_error) - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2155, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2155, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(((PyObject *)__pyx_cur_scope->__pyx_v_self) == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "weight"); @@ -32840,7 +32859,7 @@ static std::string __pyx_f_7_pynini_19_StringPathIterator_ostring(struct __pyx_o __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2174, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2174, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -32947,7 +32966,7 @@ static PyObject *__pyx_pf_7_pynini_19_StringPathIterator_24ostring(struct __pyx_ __Pyx_RefNannySetupContext("ostring", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7_pynini_19_StringPathIterator_ostring(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2174, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2174, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2174, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -33100,7 +33119,7 @@ static PyObject *__pyx_gb_7_pynini_19_StringPathIterator_28generator4(__pyx_Coro __PYX_ERR(0, 2198, __pyx_L1_error) } __pyx_t_2 = ((struct __pyx_vtabstruct_7_pynini__StringPathIterator *)__pyx_cur_scope->__pyx_v_self->__pyx_vtab)->ostring(__pyx_cur_scope->__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2198, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2198, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2198, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; @@ -33973,7 +33992,7 @@ static int __pyx_pf_7_pynini_3Far___init__(struct __pyx_obj_7_pynini_Far *__pyx_ PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "_name"); __PYX_ERR(0, 2267, __pyx_L1_error) } - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_self->_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2267, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_self->_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2267, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; @@ -34046,7 +34065,7 @@ static int __pyx_pf_7_pynini_3Far___init__(struct __pyx_obj_7_pynini_Far *__pyx_ PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "_name"); __PYX_ERR(0, 2269, __pyx_L1_error) } - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_self->_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2269, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_self->_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 2269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2269, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -34232,7 +34251,7 @@ static PyObject *__pyx_pf_7_pynini_3Far_2__repr__(struct __pyx_obj_7_pynini_Far __PYX_ERR(0, 2276, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_7_pynini_Far *)__pyx_v_self->__pyx_vtab)->far_type(__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2276, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2276, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -34247,7 +34266,7 @@ static PyObject *__pyx_pf_7_pynini_3Far_2__repr__(struct __pyx_obj_7_pynini_Far PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "_name"); __PYX_ERR(0, 2276, __pyx_L1_error) } - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_self->_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2276, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_self->_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 2276, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -34878,7 +34897,7 @@ static std::string __pyx_f_7_pynini_3Far_arc_type(struct __pyx_obj_7_pynini_Far __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2307, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2307, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -35070,7 +35089,7 @@ static PyObject *__pyx_pf_7_pynini_3Far_6arc_type(struct __pyx_obj_7_pynini_Far __Pyx_RefNannySetupContext("arc_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7_pynini_3Far_arc_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2307, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2307, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2307, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -35338,7 +35357,7 @@ static std::string __pyx_f_7_pynini_3Far_far_type(struct __pyx_obj_7_pynini_Far __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2330, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2330, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -35530,7 +35549,7 @@ static PyObject *__pyx_pf_7_pynini_3Far_10far_type(struct __pyx_obj_7_pynini_Far __Pyx_RefNannySetupContext("far_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7_pynini_3Far_far_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2330, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2330, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2330, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -35610,7 +35629,7 @@ static std::string __pyx_f_7_pynini_3Far_mode(struct __pyx_obj_7_pynini_Far *__p __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2344, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2344, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -35645,7 +35664,7 @@ static std::string __pyx_f_7_pynini_3Far_mode(struct __pyx_obj_7_pynini_Far *__p __pyx_t_2 = __Pyx_PyObject_Format(__pyx_t_1, __pyx_n_u_c); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2350, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2350, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2350, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; goto __pyx_L0; @@ -35724,7 +35743,7 @@ static PyObject *__pyx_pf_7_pynini_3Far_12mode(struct __pyx_obj_7_pynini_Far *__ __Pyx_RefNannySetupContext("mode", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7_pynini_3Far_mode(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2344, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2344, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2344, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -35804,7 +35823,7 @@ static std::string __pyx_f_7_pynini_3Far_name(struct __pyx_obj_7_pynini_Far *__p __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2352, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2352, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -35911,7 +35930,7 @@ static PyObject *__pyx_pf_7_pynini_3Far_14name(struct __pyx_obj_7_pynini_Far *__ __Pyx_RefNannySetupContext("name", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7_pynini_3Far_name(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2352, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2352, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2352, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -36689,7 +36708,7 @@ static std::string __pyx_f_7_pynini_3Far_get_key(struct __pyx_obj_7_pynini_Far * __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2415, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2415, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -36814,7 +36833,7 @@ static PyObject *__pyx_pf_7_pynini_3Far_22get_key(struct __pyx_obj_7_pynini_Far __Pyx_RefNannySetupContext("get_key", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_7_pynini_3Far_get_key(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2415, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2415, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2415, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -38546,7 +38565,7 @@ static PyObject *__pyx_pf_7_pynini_3Far_44__reduce_cython__(struct __pyx_obj_7_p PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "_name"); __PYX_ERR(1, 5, __pyx_L1_error) } - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_self->_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_self->_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 5, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); if (unlikely(((PyObject *)__pyx_v_self) == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "_reader"); @@ -40618,7 +40637,7 @@ static PyObject *__pyx_f_7_pynini___pyx_unpickle_Far__set_state(struct __pyx_obj } __pyx_t_1 = __Pyx_GetItemInt_Tuple(__pyx_v___pyx_state, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 12, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 12, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(((PyObject *)__pyx_v___pyx_result) == Py_None)) { PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "_name"); @@ -42025,8 +42044,10 @@ static PyTypeObject __pyx_type_7_pynini_Far = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct__union *__pyx_freelist_7_pynini___pyx_scope_struct__union[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct__union = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct__union(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -42034,7 +42055,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct__union(PyTypeObject *t allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct__union > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct__union)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct__union[--__pyx_freecount_7_pynini___pyx_scope_struct__union]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct__union)); @@ -42061,7 +42082,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct__union(PyObject *o) { #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct__union < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct__union)))) { __pyx_freelist_7_pynini___pyx_scope_struct__union[__pyx_freecount_7_pynini___pyx_scope_struct__union++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct__union *)o); } else @@ -42194,8 +42215,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct__union = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_1_genexpr *__pyx_freelist_7_pynini___pyx_scope_struct_1_genexpr[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_1_genexpr = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_1_genexpr(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -42203,7 +42226,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_1_genexpr(PyTypeObject allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_1_genexpr > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_1_genexpr)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_1_genexpr[--__pyx_freecount_7_pynini___pyx_scope_struct_1_genexpr]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_1_genexpr)); @@ -42233,7 +42256,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_1_genexpr(PyObject *o) Py_CLEAR(p->__pyx_genexpr_arg_0); Py_CLEAR(p->__pyx_v_fst2); Py_CLEAR(p->__pyx_t_0); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_1_genexpr < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_1_genexpr)))) { __pyx_freelist_7_pynini___pyx_scope_struct_1_genexpr[__pyx_freecount_7_pynini___pyx_scope_struct_1_genexpr++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_1_genexpr *)o); } else @@ -42365,8 +42388,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_1_genexpr = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_2__1arg_patch *__pyx_freelist_7_pynini___pyx_scope_struct_2__1arg_patch[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_2__1arg_patch = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_2__1arg_patch(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -42374,7 +42399,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_2__1arg_patch(PyTypeOb allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_2__1arg_patch > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_2__1arg_patch)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_2__1arg_patch[--__pyx_freecount_7_pynini___pyx_scope_struct_2__1arg_patch]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_2__1arg_patch)); @@ -42401,7 +42426,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_2__1arg_patch(PyObject #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_fnc); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_2__1arg_patch < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_2__1arg_patch)))) { __pyx_freelist_7_pynini___pyx_scope_struct_2__1arg_patch[__pyx_freecount_7_pynini___pyx_scope_struct_2__1arg_patch++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_2__1arg_patch *)o); } else @@ -42534,8 +42559,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_2__1arg_patch = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_3__shortestdistance_patch *__pyx_freelist_7_pynini___pyx_scope_struct_3__shortestdistance_patch[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_3__shortestdistance_patch = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_3__shortestdistance_patch(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -42543,7 +42570,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_3__shortestdistance_pa allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_3__shortestdistance_patch > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_3__shortestdistance_patch)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_3__shortestdistance_patch[--__pyx_freecount_7_pynini___pyx_scope_struct_3__shortestdistance_patch]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_3__shortestdistance_patch)); @@ -42570,7 +42597,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_3__shortestdistance_pat #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_fnc); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_3__shortestdistance_patch < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_3__shortestdistance_patch)))) { __pyx_freelist_7_pynini___pyx_scope_struct_3__shortestdistance_patch[__pyx_freecount_7_pynini___pyx_scope_struct_3__shortestdistance_patch++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_3__shortestdistance_patch *)o); } else @@ -42703,8 +42730,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_3__shortestdistance_p }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_4__compose_patch *__pyx_freelist_7_pynini___pyx_scope_struct_4__compose_patch[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_4__compose_patch = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_4__compose_patch(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -42712,7 +42741,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_4__compose_patch(PyTyp allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_4__compose_patch > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_4__compose_patch)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_4__compose_patch[--__pyx_freecount_7_pynini___pyx_scope_struct_4__compose_patch]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_4__compose_patch)); @@ -42739,7 +42768,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_4__compose_patch(PyObje #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_fnc); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_4__compose_patch < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_4__compose_patch)))) { __pyx_freelist_7_pynini___pyx_scope_struct_4__compose_patch[__pyx_freecount_7_pynini___pyx_scope_struct_4__compose_patch++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_4__compose_patch *)o); } else @@ -42872,8 +42901,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_4__compose_patch = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_5__difference_patch *__pyx_freelist_7_pynini___pyx_scope_struct_5__difference_patch[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_5__difference_patch = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_5__difference_patch(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -42881,7 +42912,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_5__difference_patch(Py allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_5__difference_patch > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_5__difference_patch)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_5__difference_patch[--__pyx_freecount_7_pynini___pyx_scope_struct_5__difference_patch]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_5__difference_patch)); @@ -42908,7 +42939,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_5__difference_patch(PyO #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_fnc); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_5__difference_patch < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_5__difference_patch)))) { __pyx_freelist_7_pynini___pyx_scope_struct_5__difference_patch[__pyx_freecount_7_pynini___pyx_scope_struct_5__difference_patch++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_5__difference_patch *)o); } else @@ -43041,8 +43072,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_5__difference_patch = }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_6__comp_patch *__pyx_freelist_7_pynini___pyx_scope_struct_6__comp_patch[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_6__comp_patch = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_6__comp_patch(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -43050,7 +43083,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_6__comp_patch(PyTypeOb allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_6__comp_patch > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_6__comp_patch)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_6__comp_patch[--__pyx_freecount_7_pynini___pyx_scope_struct_6__comp_patch]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_6__comp_patch)); @@ -43077,7 +43110,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_6__comp_patch(PyObject #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_fnc); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_6__comp_patch < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_6__comp_patch)))) { __pyx_freelist_7_pynini___pyx_scope_struct_6__comp_patch[__pyx_freecount_7_pynini___pyx_scope_struct_6__comp_patch++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_6__comp_patch *)o); } else @@ -43210,8 +43243,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_6__comp_patch = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_7___iter__ *__pyx_freelist_7_pynini___pyx_scope_struct_7___iter__[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_7___iter__ = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_7___iter__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -43219,7 +43254,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_7___iter__(PyTypeObjec allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_7___iter__ > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_7___iter__)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_7___iter__[--__pyx_freecount_7_pynini___pyx_scope_struct_7___iter__]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_7___iter__)); @@ -43246,7 +43281,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_7___iter__(PyObject *o) #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_7___iter__ < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_7___iter__)))) { __pyx_freelist_7_pynini___pyx_scope_struct_7___iter__[__pyx_freecount_7_pynini___pyx_scope_struct_7___iter__++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_7___iter__ *)o); } else @@ -43369,8 +43404,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_7___iter__ = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_8___iter__ *__pyx_freelist_7_pynini___pyx_scope_struct_8___iter__[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_8___iter__ = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_8___iter__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -43378,7 +43415,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_8___iter__(PyTypeObjec allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_8___iter__ > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_8___iter__)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_8___iter__[--__pyx_freecount_7_pynini___pyx_scope_struct_8___iter__]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_8___iter__)); @@ -43405,7 +43442,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_8___iter__(PyObject *o) #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_8___iter__ < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_8___iter__)))) { __pyx_freelist_7_pynini___pyx_scope_struct_8___iter__[__pyx_freecount_7_pynini___pyx_scope_struct_8___iter__++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_8___iter__ *)o); } else @@ -43528,8 +43565,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_8___iter__ = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_9_istrings *__pyx_freelist_7_pynini___pyx_scope_struct_9_istrings[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_9_istrings = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_9_istrings(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -43537,7 +43576,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_9_istrings(PyTypeObjec allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_9_istrings > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_9_istrings)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_9_istrings[--__pyx_freecount_7_pynini___pyx_scope_struct_9_istrings]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_9_istrings)); @@ -43564,7 +43603,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_9_istrings(PyObject *o) #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_9_istrings < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_9_istrings)))) { __pyx_freelist_7_pynini___pyx_scope_struct_9_istrings[__pyx_freecount_7_pynini___pyx_scope_struct_9_istrings++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_9_istrings *)o); } else @@ -43687,8 +43726,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_9_istrings = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_10_items *__pyx_freelist_7_pynini___pyx_scope_struct_10_items[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_10_items = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_10_items(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -43696,7 +43737,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_10_items(PyTypeObject allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_10_items > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_10_items)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_10_items[--__pyx_freecount_7_pynini___pyx_scope_struct_10_items]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_10_items)); @@ -43723,7 +43764,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_10_items(PyObject *o) { #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_10_items < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_10_items)))) { __pyx_freelist_7_pynini___pyx_scope_struct_10_items[__pyx_freecount_7_pynini___pyx_scope_struct_10_items++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_10_items *)o); } else @@ -43846,8 +43887,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_10_items = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_11_ostrings *__pyx_freelist_7_pynini___pyx_scope_struct_11_ostrings[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_11_ostrings = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_11_ostrings(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -43855,7 +43898,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_11_ostrings(PyTypeObje allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_11_ostrings > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_11_ostrings)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_11_ostrings[--__pyx_freecount_7_pynini___pyx_scope_struct_11_ostrings]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_11_ostrings)); @@ -43882,7 +43925,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_11_ostrings(PyObject *o #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_11_ostrings < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_11_ostrings)))) { __pyx_freelist_7_pynini___pyx_scope_struct_11_ostrings[__pyx_freecount_7_pynini___pyx_scope_struct_11_ostrings++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_11_ostrings *)o); } else @@ -44005,8 +44048,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_11_ostrings = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_12_weights *__pyx_freelist_7_pynini___pyx_scope_struct_12_weights[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_12_weights = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_12_weights(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -44014,7 +44059,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_12_weights(PyTypeObjec allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_12_weights > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_12_weights)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_12_weights[--__pyx_freecount_7_pynini___pyx_scope_struct_12_weights]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_12_weights)); @@ -44041,7 +44086,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_12_weights(PyObject *o) #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_12_weights < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_12_weights)))) { __pyx_freelist_7_pynini___pyx_scope_struct_12_weights[__pyx_freecount_7_pynini___pyx_scope_struct_12_weights++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_12_weights *)o); } else @@ -44164,8 +44209,10 @@ static PyTypeObject __pyx_type_7_pynini___pyx_scope_struct_12_weights = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_7_pynini___pyx_scope_struct_13__copy_patch *__pyx_freelist_7_pynini___pyx_scope_struct_13__copy_patch[8]; static int __pyx_freecount_7_pynini___pyx_scope_struct_13__copy_patch = 0; +#endif static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_13__copy_patch(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -44173,7 +44220,7 @@ static PyObject *__pyx_tp_new_7_pynini___pyx_scope_struct_13__copy_patch(PyTypeO allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_7_pynini___pyx_scope_struct_13__copy_patch > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_13__copy_patch)))) { o = (PyObject*)__pyx_freelist_7_pynini___pyx_scope_struct_13__copy_patch[--__pyx_freecount_7_pynini___pyx_scope_struct_13__copy_patch]; memset(o, 0, sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_13__copy_patch)); @@ -44200,7 +44247,7 @@ static void __pyx_tp_dealloc_7_pynini___pyx_scope_struct_13__copy_patch(PyObject #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_fnc); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_7_pynini___pyx_scope_struct_13__copy_patch < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_7_pynini___pyx_scope_struct_13__copy_patch)))) { __pyx_freelist_7_pynini___pyx_scope_struct_13__copy_patch[__pyx_freecount_7_pynini___pyx_scope_struct_13__copy_patch++] = ((struct __pyx_obj_7_pynini___pyx_scope_struct_13__copy_patch *)o); } else @@ -46001,7 +46048,7 @@ static int __Pyx_modinit_type_init_code(void) { /*--- Type init code ---*/ __pyx_t_1 = PyImport_ImportModule("_pywrapfst"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_ptype_10_pywrapfst_VectorFst = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "VectorFst", sizeof(struct __pyx_obj_10_pywrapfst_VectorFst), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_VectorFst),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_VectorFst) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_VectorFst = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "VectorFst", sizeof(struct __pyx_obj_10_pywrapfst_VectorFst), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_VectorFst),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_VectorFst) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_VectorFst = (struct __pyx_vtabstruct_10_pywrapfst_VectorFst*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_VectorFst); if (unlikely(!__pyx_vtabptr_10_pywrapfst_VectorFst)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_vtabptr_7_pynini_Fst = &__pyx_vtable_7_pynini_Fst; __pyx_vtable_7_pynini_Fst.__pyx_base = *__pyx_vtabptr_10_pywrapfst_VectorFst; @@ -46051,7 +46098,7 @@ static int __Pyx_modinit_type_init_code(void) { if (__Pyx_MergeVtables(__pyx_ptype_7_pynini_Fst) < 0) __PYX_ERR(0, 333, __pyx_L1_error) #endif if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Fst, (PyObject *) __pyx_ptype_7_pynini_Fst) < 0) __PYX_ERR(0, 333, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_SymbolTableView = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "SymbolTableView", sizeof(struct __pyx_obj_10_pywrapfst_SymbolTableView), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_SymbolTableView),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_SymbolTableView) __PYX_ERR(0, 1, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_SymbolTableView = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "SymbolTableView", sizeof(struct __pyx_obj_10_pywrapfst_SymbolTableView), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_SymbolTableView),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_SymbolTableView) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_SymbolTableView = (struct __pyx_vtabstruct_10_pywrapfst_SymbolTableView*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_SymbolTableView); if (unlikely(!__pyx_vtabptr_10_pywrapfst_SymbolTableView)) __PYX_ERR(0, 1, __pyx_L1_error) __pyx_vtabptr_7_pynini__PointerSymbolTableView = &__pyx_vtable_7_pynini__PointerSymbolTableView; __pyx_vtable_7_pynini__PointerSymbolTableView.__pyx_base = *__pyx_vtabptr_10_pywrapfst_SymbolTableView; @@ -46516,38 +46563,38 @@ static int __Pyx_modinit_type_import_code(void) { /*--- Type import code ---*/ __pyx_t_1 = PyImport_ImportModule("_pywrapfst"); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 70, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_ptype_10_pywrapfst_Weight = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "Weight", sizeof(struct __pyx_obj_10_pywrapfst_Weight), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_Weight),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_Weight) __PYX_ERR(2, 70, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_Weight = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "Weight", sizeof(struct __pyx_obj_10_pywrapfst_Weight), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_Weight),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_Weight) __PYX_ERR(2, 70, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_Weight = (struct __pyx_vtabstruct_10_pywrapfst_Weight*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_Weight); if (unlikely(!__pyx_vtabptr_10_pywrapfst_Weight)) __PYX_ERR(2, 70, __pyx_L1_error) - __pyx_ptype_10_pywrapfst__EncodeMapperSymbolTableView = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "_EncodeMapperSymbolTableView", sizeof(struct __pyx_obj_10_pywrapfst__EncodeMapperSymbolTableView), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst__EncodeMapperSymbolTableView),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst__EncodeMapperSymbolTableView) __PYX_ERR(2, 135, __pyx_L1_error) + __pyx_ptype_10_pywrapfst__EncodeMapperSymbolTableView = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "_EncodeMapperSymbolTableView", sizeof(struct __pyx_obj_10_pywrapfst__EncodeMapperSymbolTableView), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst__EncodeMapperSymbolTableView),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst__EncodeMapperSymbolTableView) __PYX_ERR(2, 135, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst__EncodeMapperSymbolTableView = (struct __pyx_vtabstruct_10_pywrapfst__EncodeMapperSymbolTableView*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst__EncodeMapperSymbolTableView); if (unlikely(!__pyx_vtabptr_10_pywrapfst__EncodeMapperSymbolTableView)) __PYX_ERR(2, 135, __pyx_L1_error) - __pyx_ptype_10_pywrapfst__FstSymbolTableView = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "_FstSymbolTableView", sizeof(struct __pyx_obj_10_pywrapfst__FstSymbolTableView), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst__FstSymbolTableView),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst__FstSymbolTableView) __PYX_ERR(2, 143, __pyx_L1_error) + __pyx_ptype_10_pywrapfst__FstSymbolTableView = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "_FstSymbolTableView", sizeof(struct __pyx_obj_10_pywrapfst__FstSymbolTableView), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst__FstSymbolTableView),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst__FstSymbolTableView) __PYX_ERR(2, 143, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst__FstSymbolTableView = (struct __pyx_vtabstruct_10_pywrapfst__FstSymbolTableView*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst__FstSymbolTableView); if (unlikely(!__pyx_vtabptr_10_pywrapfst__FstSymbolTableView)) __PYX_ERR(2, 143, __pyx_L1_error) - __pyx_ptype_10_pywrapfst__MutableSymbolTable = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "_MutableSymbolTable", sizeof(struct __pyx_obj_10_pywrapfst__MutableSymbolTable), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst__MutableSymbolTable),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst__MutableSymbolTable) __PYX_ERR(2, 151, __pyx_L1_error) + __pyx_ptype_10_pywrapfst__MutableSymbolTable = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "_MutableSymbolTable", sizeof(struct __pyx_obj_10_pywrapfst__MutableSymbolTable), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst__MutableSymbolTable),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst__MutableSymbolTable) __PYX_ERR(2, 151, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst__MutableSymbolTable = (struct __pyx_vtabstruct_10_pywrapfst__MutableSymbolTable*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst__MutableSymbolTable); if (unlikely(!__pyx_vtabptr_10_pywrapfst__MutableSymbolTable)) __PYX_ERR(2, 151, __pyx_L1_error) - __pyx_ptype_10_pywrapfst__MutableFstSymbolTableView = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "_MutableFstSymbolTableView", sizeof(struct __pyx_obj_10_pywrapfst__MutableFstSymbolTableView), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst__MutableFstSymbolTableView),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst__MutableFstSymbolTableView) __PYX_ERR(2, 164, __pyx_L1_error) + __pyx_ptype_10_pywrapfst__MutableFstSymbolTableView = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "_MutableFstSymbolTableView", sizeof(struct __pyx_obj_10_pywrapfst__MutableFstSymbolTableView), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst__MutableFstSymbolTableView),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst__MutableFstSymbolTableView) __PYX_ERR(2, 164, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst__MutableFstSymbolTableView = (struct __pyx_vtabstruct_10_pywrapfst__MutableFstSymbolTableView*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst__MutableFstSymbolTableView); if (unlikely(!__pyx_vtabptr_10_pywrapfst__MutableFstSymbolTableView)) __PYX_ERR(2, 164, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_SymbolTable = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "SymbolTable", sizeof(struct __pyx_obj_10_pywrapfst_SymbolTable), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_SymbolTable),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_SymbolTable) __PYX_ERR(2, 172, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_SymbolTable = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "SymbolTable", sizeof(struct __pyx_obj_10_pywrapfst_SymbolTable), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_SymbolTable),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_SymbolTable) __PYX_ERR(2, 172, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_SymbolTable = (struct __pyx_vtabstruct_10_pywrapfst_SymbolTable*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_SymbolTable); if (unlikely(!__pyx_vtabptr_10_pywrapfst_SymbolTable)) __PYX_ERR(2, 172, __pyx_L1_error) - __pyx_ptype_10_pywrapfst__SymbolTableIterator = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "_SymbolTableIterator", sizeof(struct __pyx_obj_10_pywrapfst__SymbolTableIterator), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst__SymbolTableIterator),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst__SymbolTableIterator) __PYX_ERR(2, 195, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_EncodeMapper = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "EncodeMapper", sizeof(struct __pyx_obj_10_pywrapfst_EncodeMapper), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_EncodeMapper),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_EncodeMapper) __PYX_ERR(2, 207, __pyx_L1_error) + __pyx_ptype_10_pywrapfst__SymbolTableIterator = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "_SymbolTableIterator", sizeof(struct __pyx_obj_10_pywrapfst__SymbolTableIterator), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst__SymbolTableIterator),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst__SymbolTableIterator) __PYX_ERR(2, 195, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_EncodeMapper = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "EncodeMapper", sizeof(struct __pyx_obj_10_pywrapfst_EncodeMapper), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_EncodeMapper),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_EncodeMapper) __PYX_ERR(2, 207, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_EncodeMapper = (struct __pyx_vtabstruct_10_pywrapfst_EncodeMapper*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_EncodeMapper); if (unlikely(!__pyx_vtabptr_10_pywrapfst_EncodeMapper)) __PYX_ERR(2, 207, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_Fst = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "Fst", sizeof(struct __pyx_obj_10_pywrapfst_Fst), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_Fst),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_Fst) __PYX_ERR(2, 244, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_Fst = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "Fst", sizeof(struct __pyx_obj_10_pywrapfst_Fst), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_Fst),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_Fst) __PYX_ERR(2, 244, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_Fst = (struct __pyx_vtabstruct_10_pywrapfst_Fst*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_Fst); if (unlikely(!__pyx_vtabptr_10_pywrapfst_Fst)) __PYX_ERR(2, 244, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_MutableFst = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "MutableFst", sizeof(struct __pyx_obj_10_pywrapfst_MutableFst), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_MutableFst),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_MutableFst) __PYX_ERR(2, 310, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_MutableFst = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "MutableFst", sizeof(struct __pyx_obj_10_pywrapfst_MutableFst), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_MutableFst),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_MutableFst) __PYX_ERR(2, 310, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_MutableFst = (struct __pyx_vtabstruct_10_pywrapfst_MutableFst*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_MutableFst); if (unlikely(!__pyx_vtabptr_10_pywrapfst_MutableFst)) __PYX_ERR(2, 310, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_Arc = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "Arc", sizeof(struct __pyx_obj_10_pywrapfst_Arc), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_Arc),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_Arc) __PYX_ERR(2, 413, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_Arc = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "Arc", sizeof(struct __pyx_obj_10_pywrapfst_Arc), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_Arc),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_Arc) __PYX_ERR(2, 413, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_Arc = (struct __pyx_vtabstruct_10_pywrapfst_Arc*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_Arc); if (unlikely(!__pyx_vtabptr_10_pywrapfst_Arc)) __PYX_ERR(2, 413, __pyx_L1_error) - __pyx_ptype_10_pywrapfst__ArcIterator = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "_ArcIterator", sizeof(struct __pyx_obj_10_pywrapfst__ArcIterator), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst__ArcIterator),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst__ArcIterator) __PYX_ERR(2, 423, __pyx_L1_error) + __pyx_ptype_10_pywrapfst__ArcIterator = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "_ArcIterator", sizeof(struct __pyx_obj_10_pywrapfst__ArcIterator), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst__ArcIterator),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst__ArcIterator) __PYX_ERR(2, 423, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst__ArcIterator = (struct __pyx_vtabstruct_10_pywrapfst__ArcIterator*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst__ArcIterator); if (unlikely(!__pyx_vtabptr_10_pywrapfst__ArcIterator)) __PYX_ERR(2, 423, __pyx_L1_error) - __pyx_ptype_10_pywrapfst__MutableArcIterator = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "_MutableArcIterator", sizeof(struct __pyx_obj_10_pywrapfst__MutableArcIterator), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst__MutableArcIterator),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst__MutableArcIterator) __PYX_ERR(2, 445, __pyx_L1_error) + __pyx_ptype_10_pywrapfst__MutableArcIterator = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "_MutableArcIterator", sizeof(struct __pyx_obj_10_pywrapfst__MutableArcIterator), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst__MutableArcIterator),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst__MutableArcIterator) __PYX_ERR(2, 445, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst__MutableArcIterator = (struct __pyx_vtabstruct_10_pywrapfst__MutableArcIterator*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst__MutableArcIterator); if (unlikely(!__pyx_vtabptr_10_pywrapfst__MutableArcIterator)) __PYX_ERR(2, 445, __pyx_L1_error) - __pyx_ptype_10_pywrapfst__StateIterator = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "_StateIterator", sizeof(struct __pyx_obj_10_pywrapfst__StateIterator), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst__StateIterator),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst__StateIterator) __PYX_ERR(2, 469, __pyx_L1_error) + __pyx_ptype_10_pywrapfst__StateIterator = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "_StateIterator", sizeof(struct __pyx_obj_10_pywrapfst__StateIterator), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst__StateIterator),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst__StateIterator) __PYX_ERR(2, 469, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst__StateIterator = (struct __pyx_vtabstruct_10_pywrapfst__StateIterator*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst__StateIterator); if (unlikely(!__pyx_vtabptr_10_pywrapfst__StateIterator)) __PYX_ERR(2, 469, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_Compiler = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "Compiler", sizeof(struct __pyx_obj_10_pywrapfst_Compiler), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_Compiler),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_Compiler) __PYX_ERR(2, 591, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_Compiler = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "Compiler", sizeof(struct __pyx_obj_10_pywrapfst_Compiler), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_Compiler),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_Compiler) __PYX_ERR(2, 591, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_Compiler = (struct __pyx_vtabstruct_10_pywrapfst_Compiler*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_Compiler); if (unlikely(!__pyx_vtabptr_10_pywrapfst_Compiler)) __PYX_ERR(2, 591, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_FarReader = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "FarReader", sizeof(struct __pyx_obj_10_pywrapfst_FarReader), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_FarReader),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_FarReader) __PYX_ERR(2, 611, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_FarReader = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "FarReader", sizeof(struct __pyx_obj_10_pywrapfst_FarReader), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_FarReader),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_FarReader) __PYX_ERR(2, 611, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_FarReader = (struct __pyx_vtabstruct_10_pywrapfst_FarReader*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_FarReader); if (unlikely(!__pyx_vtabptr_10_pywrapfst_FarReader)) __PYX_ERR(2, 611, __pyx_L1_error) - __pyx_ptype_10_pywrapfst_FarWriter = __Pyx_ImportType_3_0_7(__pyx_t_1, "_pywrapfst", "FarWriter", sizeof(struct __pyx_obj_10_pywrapfst_FarWriter), __PYX_GET_STRUCT_ALIGNMENT_3_0_7(struct __pyx_obj_10_pywrapfst_FarWriter),__Pyx_ImportType_CheckSize_Warn_3_0_7); if (!__pyx_ptype_10_pywrapfst_FarWriter) __PYX_ERR(2, 636, __pyx_L1_error) + __pyx_ptype_10_pywrapfst_FarWriter = __Pyx_ImportType_3_0_10(__pyx_t_1, "_pywrapfst", "FarWriter", sizeof(struct __pyx_obj_10_pywrapfst_FarWriter), __PYX_GET_STRUCT_ALIGNMENT_3_0_10(struct __pyx_obj_10_pywrapfst_FarWriter),__Pyx_ImportType_CheckSize_Warn_3_0_10); if (!__pyx_ptype_10_pywrapfst_FarWriter) __PYX_ERR(2, 636, __pyx_L1_error) __pyx_vtabptr_10_pywrapfst_FarWriter = (struct __pyx_vtabstruct_10_pywrapfst_FarWriter*)__Pyx_GetVtable(__pyx_ptype_10_pywrapfst_FarWriter); if (unlikely(!__pyx_vtabptr_10_pywrapfst_FarWriter)) __PYX_ERR(2, 636, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); @@ -46576,15 +46623,15 @@ static int __Pyx_modinit_function_import_code(void) { /*--- Function import code ---*/ __pyx_t_1 = PyImport_ImportModule("_pywrapfst"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "tostring", (void (**)(void))&__pyx_f_10_pywrapfst_tostring, "std::string (PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "path_tostring", (void (**)(void))&__pyx_f_10_pywrapfst_path_tostring, "std::string (PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "_get_compose_filter", (void (**)(void))&__pyx_f_10_pywrapfst__get_compose_filter, "enum fst::ComposeFilter (std::string const &)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "_get_queue_type", (void (**)(void))&__pyx_f_10_pywrapfst__get_queue_type, "enum fst::QueueType (std::string const &)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "_get_replace_label_type", (void (**)(void))&__pyx_f_10_pywrapfst__get_replace_label_type, "enum fst::ReplaceLabelType (std::string const &, bool)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "_get_WeightClass_or_one", (void (**)(void))&__pyx_f_10_pywrapfst__get_WeightClass_or_one, "fst::script::WeightClass (std::string const &, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "_get_WeightClass_or_zero", (void (**)(void))&__pyx_f_10_pywrapfst__get_WeightClass_or_zero, "fst::script::WeightClass (std::string const &, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "equal", (void (**)(void))&__pyx_f_10_pywrapfst_equal, "bool (struct __pyx_obj_10_pywrapfst_Fst *, struct __pyx_obj_10_pywrapfst_Fst *, int __pyx_skip_dispatch, struct __pyx_opt_args_10_pywrapfst_equal *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) - if (__Pyx_ImportFunction_3_0_7(__pyx_t_1, "replace", (void (**)(void))&__pyx_f_10_pywrapfst_replace, "struct __pyx_obj_10_pywrapfst_MutableFst *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_10_pywrapfst_replace *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "tostring", (void (**)(void))&__pyx_f_10_pywrapfst_tostring, "std::string (PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "path_tostring", (void (**)(void))&__pyx_f_10_pywrapfst_path_tostring, "std::string (PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "_get_compose_filter", (void (**)(void))&__pyx_f_10_pywrapfst__get_compose_filter, "enum fst::ComposeFilter (std::string const &)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "_get_queue_type", (void (**)(void))&__pyx_f_10_pywrapfst__get_queue_type, "enum fst::QueueType (std::string const &)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "_get_replace_label_type", (void (**)(void))&__pyx_f_10_pywrapfst__get_replace_label_type, "enum fst::ReplaceLabelType (std::string const &, bool)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "_get_WeightClass_or_one", (void (**)(void))&__pyx_f_10_pywrapfst__get_WeightClass_or_one, "fst::script::WeightClass (std::string const &, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "_get_WeightClass_or_zero", (void (**)(void))&__pyx_f_10_pywrapfst__get_WeightClass_or_zero, "fst::script::WeightClass (std::string const &, PyObject *)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "equal", (void (**)(void))&__pyx_f_10_pywrapfst_equal, "bool (struct __pyx_obj_10_pywrapfst_Fst *, struct __pyx_obj_10_pywrapfst_Fst *, int __pyx_skip_dispatch, struct __pyx_opt_args_10_pywrapfst_equal *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) + if (__Pyx_ImportFunction_3_0_10(__pyx_t_1, "replace", (void (**)(void))&__pyx_f_10_pywrapfst_replace, "struct __pyx_obj_10_pywrapfst_MutableFst *(PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_10_pywrapfst_replace *__pyx_optional_args)") < 0) __PYX_ERR(0, 1, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_RefNannyFinishContext(); return 0; @@ -51456,9 +51503,10 @@ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { /* IterFinish */ static CYTHON_INLINE int __Pyx_IterFinish(void) { + PyObject* exc_type; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign - PyObject* exc_type = __Pyx_PyErr_CurrentExceptionType(); + exc_type = __Pyx_PyErr_CurrentExceptionType(); if (unlikely(exc_type)) { if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) return -1; @@ -52158,11 +52206,11 @@ static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyO { int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), Py_EQ); if (unlikely(eq != 0)) { - if (unlikely(eq < 0)) return NULL; // error + if (unlikely(eq < 0)) return NULL; return kwvalues[i]; } } - return NULL; // not found (no exception set) + return NULL; } #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) { @@ -52275,7 +52323,7 @@ static int __Pyx_ParseOptionalKeywords( if (*name) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - Py_INCREF(value); // transfer ownership of value to values + Py_INCREF(value); Py_DECREF(key); #endif key = NULL; @@ -52294,7 +52342,7 @@ static int __Pyx_ParseOptionalKeywords( && _PyString_Eq(**name, key)) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - value = NULL; // ownership transferred to values + value = NULL; #endif break; } @@ -52326,7 +52374,7 @@ static int __Pyx_ParseOptionalKeywords( if (cmp == 0) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - value = NULL; // ownership transferred to values + value = NULL; #endif break; } @@ -53923,7 +53971,7 @@ static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, default: return NULL; } - return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames); + return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames); } static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) { @@ -54400,10 +54448,10 @@ static CYTHON_INLINE int __Pyx_HasAttr(PyObject *o, PyObject *n) { #endif /* TypeImport */ -#ifndef __PYX_HAVE_RT_ImportType_3_0_7 -#define __PYX_HAVE_RT_ImportType_3_0_7 -static PyTypeObject *__Pyx_ImportType_3_0_7(PyObject *module, const char *module_name, const char *class_name, - size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_7 check_size) +#ifndef __PYX_HAVE_RT_ImportType_3_0_10 +#define __PYX_HAVE_RT_ImportType_3_0_10 +static PyTypeObject *__Pyx_ImportType_3_0_10(PyObject *module, const char *module_name, const char *class_name, + size_t size, size_t alignment, enum __Pyx_ImportType_CheckSize_3_0_10 check_size) { PyObject *result = 0; char warning[200]; @@ -54457,7 +54505,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_7(PyObject *module, const char *module module_name, class_name, size, basicsize+itemsize); goto bad; } - if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_7 && + if (check_size == __Pyx_ImportType_CheckSize_Error_3_0_10 && ((size_t)basicsize > size || (size_t)(basicsize + itemsize) < size)) { PyErr_Format(PyExc_ValueError, "%.200s.%.200s size changed, may indicate binary incompatibility. " @@ -54465,7 +54513,7 @@ static PyTypeObject *__Pyx_ImportType_3_0_7(PyObject *module, const char *module module_name, class_name, size, basicsize, basicsize+itemsize); goto bad; } - else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_7 && (size_t)basicsize > size) { + else if (check_size == __Pyx_ImportType_CheckSize_Warn_3_0_10 && (size_t)basicsize > size) { PyOS_snprintf(warning, sizeof(warning), "%s.%s size changed, may indicate binary incompatibility. " "Expected %zd from C header, got %zd from PyObject", @@ -55832,7 +55880,7 @@ static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( #else py_code = PyCode_NewEmpty(filename, funcname, py_line); #endif - Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline + Py_XDECREF(py_funcname); return py_code; bad: Py_XDECREF(py_funcname); @@ -59075,9 +59123,9 @@ static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt } /* FunctionImport */ -#ifndef __PYX_HAVE_RT_ImportFunction_3_0_7 -#define __PYX_HAVE_RT_ImportFunction_3_0_7 -static int __Pyx_ImportFunction_3_0_7(PyObject *module, const char *funcname, void (**f)(void), const char *sig) { +#ifndef __PYX_HAVE_RT_ImportFunction_3_0_10 +#define __PYX_HAVE_RT_ImportFunction_3_0_10 +static int __Pyx_ImportFunction_3_0_10(PyObject *module, const char *funcname, void (**f)(void), const char *sig) { PyObject *d = 0; PyObject *cobj = 0; union { diff --git a/extensions/_pywrapfst.cpp b/extensions/_pywrapfst.cpp index 87091a9..41d7ba9 100644 --- a/extensions/_pywrapfst.cpp +++ b/extensions/_pywrapfst.cpp @@ -1,4 +1,4 @@ -/* Generated by Cython 3.0.7 */ +/* Generated by Cython 3.0.10 */ /* BEGIN: Cython Metadata { @@ -54,10 +54,10 @@ END: Cython Metadata */ #else #define __PYX_EXTRA_ABI_MODULE_NAME "" #endif -#define CYTHON_ABI "3_0_7" __PYX_EXTRA_ABI_MODULE_NAME +#define CYTHON_ABI "3_0_10" __PYX_EXTRA_ABI_MODULE_NAME #define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI #define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "." -#define CYTHON_HEX_VERSION 0x030007F0 +#define CYTHON_HEX_VERSION 0x03000AF0 #define CYTHON_FUTURE_DIVISION 1 #include #ifndef offsetof @@ -149,6 +149,8 @@ END: Cython Metadata */ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif + #undef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 #elif defined(PYPY_VERSION) #define CYTHON_COMPILING_IN_PYPY 1 #define CYTHON_COMPILING_IN_CPYTHON 0 @@ -210,6 +212,8 @@ END: Cython Metadata */ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif + #undef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 #elif defined(CYTHON_LIMITED_API) #ifdef Py_LIMITED_API #undef __PYX_LIMITED_VERSION_HEX @@ -271,6 +275,8 @@ END: Cython Metadata */ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 0 #endif + #undef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 #elif defined(Py_GIL_DISABLED) || defined(Py_NOGIL) #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 0 @@ -280,11 +286,17 @@ END: Cython Metadata */ #ifndef CYTHON_USE_TYPE_SLOTS #define CYTHON_USE_TYPE_SLOTS 1 #endif + #ifndef CYTHON_USE_TYPE_SPECS + #define CYTHON_USE_TYPE_SPECS 0 + #endif #undef CYTHON_USE_PYTYPE_LOOKUP #define CYTHON_USE_PYTYPE_LOOKUP 0 #ifndef CYTHON_USE_ASYNC_SLOTS #define CYTHON_USE_ASYNC_SLOTS 1 #endif + #ifndef CYTHON_USE_PYLONG_INTERNALS + #define CYTHON_USE_PYLONG_INTERNALS 0 + #endif #undef CYTHON_USE_PYLIST_INTERNALS #define CYTHON_USE_PYLIST_INTERNALS 0 #ifndef CYTHON_USE_UNICODE_INTERNALS @@ -292,8 +304,6 @@ END: Cython Metadata */ #endif #undef CYTHON_USE_UNICODE_WRITER #define CYTHON_USE_UNICODE_WRITER 0 - #undef CYTHON_USE_PYLONG_INTERNALS - #define CYTHON_USE_PYLONG_INTERNALS 0 #ifndef CYTHON_AVOID_BORROWED_REFS #define CYTHON_AVOID_BORROWED_REFS 0 #endif @@ -305,11 +315,22 @@ END: Cython Metadata */ #endif #undef CYTHON_FAST_THREAD_STATE #define CYTHON_FAST_THREAD_STATE 0 + #undef CYTHON_FAST_GIL + #define CYTHON_FAST_GIL 0 + #ifndef CYTHON_METH_FASTCALL + #define CYTHON_METH_FASTCALL 1 + #endif #undef CYTHON_FAST_PYCALL #define CYTHON_FAST_PYCALL 0 + #ifndef CYTHON_PEP487_INIT_SUBCLASS + #define CYTHON_PEP487_INIT_SUBCLASS 1 + #endif #ifndef CYTHON_PEP489_MULTI_PHASE_INIT #define CYTHON_PEP489_MULTI_PHASE_INIT 1 #endif + #ifndef CYTHON_USE_MODULE_STATE + #define CYTHON_USE_MODULE_STATE 0 + #endif #ifndef CYTHON_USE_TP_FINALIZE #define CYTHON_USE_TP_FINALIZE 1 #endif @@ -317,6 +338,12 @@ END: Cython Metadata */ #define CYTHON_USE_DICT_VERSIONS 0 #undef CYTHON_USE_EXC_INFO_STACK #define CYTHON_USE_EXC_INFO_STACK 0 + #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC + #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 + #endif + #ifndef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 0 + #endif #else #define CYTHON_COMPILING_IN_PYPY 0 #define CYTHON_COMPILING_IN_CPYTHON 1 @@ -407,6 +434,9 @@ END: Cython Metadata */ #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC #define CYTHON_UPDATE_DESCRIPTOR_DOC 1 #endif + #ifndef CYTHON_USE_FREELISTS + #define CYTHON_USE_FREELISTS 1 + #endif #endif #if !defined(CYTHON_FAST_PYCCALL) #define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1) @@ -615,14 +645,14 @@ class __Pyx_FakeReference { PyObject *exception_table = NULL; PyObject *types_module=NULL, *code_type=NULL, *result=NULL; #if __PYX_LIMITED_VERSION_HEX < 0x030B0000 - PyObject *version_info; // borrowed + PyObject *version_info; PyObject *py_minor_version = NULL; #endif long minor_version = 0; PyObject *type, *value, *traceback; PyErr_Fetch(&type, &value, &traceback); #if __PYX_LIMITED_VERSION_HEX >= 0x030B0000 - minor_version = 11; // we don't yet need to distinguish between versions > 11 + minor_version = 11; #else if (!(version_info = PySys_GetObject("version_info"))) goto end; if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end; @@ -680,7 +710,7 @@ class __Pyx_FakeReference { PyObject *fv, PyObject *cell, PyObject* fn, PyObject *name, int fline, PyObject *lnos) { PyCodeObject *result; - PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); // we don't have access to __pyx_empty_bytes here + PyObject *empty_bytes = PyBytes_FromStringAndSize("", 0); if (!empty_bytes) return NULL; result = #if PY_VERSION_HEX >= 0x030C0000 @@ -766,8 +796,13 @@ class __Pyx_FakeReference { typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames); #else - #define __Pyx_PyCFunctionFast _PyCFunctionFast - #define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords + #if PY_VERSION_HEX >= 0x030d00A4 + # define __Pyx_PyCFunctionFast PyCFunctionFast + # define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords + #else + # define __Pyx_PyCFunctionFast _PyCFunctionFast + # define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords + #endif #endif #if CYTHON_METH_FASTCALL #define __Pyx_METH_FASTCALL METH_FASTCALL @@ -1119,7 +1154,7 @@ static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o) #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o) #endif -#if PY_VERSION_HEX >= 0x030d00A1 +#if __PYX_LIMITED_VERSION_HEX >= 0x030d00A1 #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name) #else static CYTHON_INLINE PyObject *__Pyx_PyImport_AddModuleRef(const char *name) { @@ -1206,7 +1241,7 @@ static CYTHON_INLINE float __PYX_NAN() { #endif #define __PYX_MARK_ERR_POS(f_index, lineno) \ - { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; } + { __pyx_filename = __pyx_f[f_index]; (void)__pyx_filename; __pyx_lineno = lineno; (void)__pyx_lineno; __pyx_clineno = __LINE__; (void)__pyx_clineno; } #define __PYX_ERR(f_index, lineno, Ln_error) \ { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; } @@ -1339,24 +1374,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*); #define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s) #define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s) #define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s) -#if CYTHON_COMPILING_IN_LIMITED_API -static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const wchar_t *u) -{ - const wchar_t *u_end = u; - while (*u_end++) ; - return (size_t)(u_end - u - 1); -} -#else -static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) -{ - const Py_UNICODE *u_end = u; - while (*u_end++) ; - return (size_t)(u_end - u - 1); -} -#endif #define __Pyx_PyUnicode_FromOrdinal(o) PyUnicode_FromOrdinal((int)o) -#define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u)) -#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode #define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode #define __Pyx_NewRef(obj) (Py_INCREF(obj), obj) #define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None) @@ -1406,7 +1424,7 @@ static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*); #endif typedef Py_ssize_t __Pyx_compact_pylong; typedef size_t __Pyx_compact_upylong; - #else // Py < 3.12 + #else #define __Pyx_PyLong_IsNeg(x) (Py_SIZE(x) < 0) #define __Pyx_PyLong_IsNonNeg(x) (Py_SIZE(x) >= 0) #define __Pyx_PyLong_IsZero(x) (Py_SIZE(x) == 0) @@ -3137,8 +3155,8 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int #define __Pyx_Arg_NewRef_VARARGS(arg) __Pyx_NewRef(arg) #define __Pyx_Arg_XDECREF_VARARGS(arg) Py_XDECREF(arg) #else - #define __Pyx_Arg_NewRef_VARARGS(arg) arg // no-op - #define __Pyx_Arg_XDECREF_VARARGS(arg) // no-op - arg is borrowed + #define __Pyx_Arg_NewRef_VARARGS(arg) arg + #define __Pyx_Arg_XDECREF_VARARGS(arg) #endif #define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds) #define __Pyx_KwValues_VARARGS(args, nargs) NULL @@ -3154,8 +3172,9 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int #else #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw) #endif - #define __Pyx_Arg_NewRef_FASTCALL(arg) arg // no-op, __Pyx_Arg_FASTCALL is direct and this needs - #define __Pyx_Arg_XDECREF_FASTCALL(arg) // no-op - arg was returned from array + #define __Pyx_Arg_NewRef_FASTCALL(arg) arg /* no-op, __Pyx_Arg_FASTCALL is direct and this needs + to have the same reference counting */ + #define __Pyx_Arg_XDECREF_FASTCALL(arg) #else #define __Pyx_Arg_FASTCALL __Pyx_Arg_VARARGS #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS @@ -3648,7 +3667,7 @@ typedef struct { #endif void *defaults; int defaults_pyobjects; - size_t defaults_size; // used by FusedFunction for copying defaults + size_t defaults_size; int flags; PyObject *defaults_tuple; PyObject *defaults_kwdict; @@ -4193,12 +4212,12 @@ static fst::ProjectType __pyx_f_10_pywrapfst__get_project_type(std::string const static enum fst::ReweightType __pyx_f_10_pywrapfst__get_reweight_type(std::string const &); /*proto*/ static struct __pyx_obj_10_pywrapfst_SymbolTable *__pyx_f_10_pywrapfst_compact_symbol_table(struct __pyx_obj_10_pywrapfst_SymbolTableView *, int __pyx_skip_dispatch); /*proto*/ static struct __pyx_obj_10_pywrapfst_SymbolTable *__pyx_f_10_pywrapfst_merge_symbol_table(struct __pyx_obj_10_pywrapfst_SymbolTableView *, struct __pyx_obj_10_pywrapfst_SymbolTableView *, int __pyx_skip_dispatch); /*proto*/ -static std::string __pyx_convert_string_from_py_std__in_string(PyObject *); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &); /*proto*/ -static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &); /*proto*/ +static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(PyObject *); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ +static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(std::string const &); /*proto*/ static std::vector __pyx_convert_vector_from_py_int64_t(PyObject *); /*proto*/ static std::vector __pyx_convert_vector_from_py_std_3a__3a_string(PyObject *); /*proto*/ /* #### Code section: typeinfo ### */ @@ -9322,13 +9341,13 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) { /* "string.from_py":13 * - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ -static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v_o) { +static std::string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(PyObject *__pyx_v_o) { Py_ssize_t __pyx_v_length; char const *__pyx_v_data; std::string __pyx_r; @@ -9339,8 +9358,8 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v int __pyx_clineno = 0; /* "string.from_py":14 - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: * cdef Py_ssize_t length = 0 # <<<<<<<<<<<<<< * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) * return string(data, length) @@ -9348,7 +9367,7 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v __pyx_v_length = 0; /* "string.from_py":15 - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) # <<<<<<<<<<<<<< * return string(data, length) @@ -9375,15 +9394,15 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v /* "string.from_py":13 * - * @cname("__pyx_convert_string_from_py_std__in_string") - * cdef string __pyx_convert_string_from_py_std__in_string(object o) except *: # <<<<<<<<<<<<<< + * @cname("__pyx_convert_string_from_py_6libcpp_6string_std__in_string") + * cdef string __pyx_convert_string_from_py_6libcpp_6string_std__in_string(object o) except *: # <<<<<<<<<<<<<< * cdef Py_ssize_t length = 0 * cdef const char* data = __Pyx_PyObject_AsStringAndSize(o, &length) */ /* function exit code */ __pyx_L1_error:; - __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.from_py.__pyx_convert_string_from_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_pretend_to_initialize(&__pyx_r); __pyx_L0:; return __pyx_r; @@ -9391,24 +9410,24 @@ static std::string __pyx_convert_string_from_py_std__in_string(PyObject *__pyx_v /* "string.to_py":31 * - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyObject_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":32 - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyUnicode_FromStringAndSize(const char*, size_t) @@ -9422,8 +9441,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin /* "string.to_py":31 * - * @cname("__pyx_convert_PyObject_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyObject_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyObject_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -9431,7 +9450,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyObject_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyObject_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9441,24 +9460,24 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyObject_string_to_py_std__in_strin /* "string.to_py":37 * - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyUnicode_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":38 - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyStr_FromStringAndSize(const char*, size_t) @@ -9472,8 +9491,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri /* "string.to_py":37 * - * @cname("__pyx_convert_PyUnicode_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyUnicode_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyUnicode_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -9481,7 +9500,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyUnicode_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9491,24 +9510,24 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyUnicode_string_to_py_std__in_stri /* "string.to_py":43 * - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyStr_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":44 - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyBytes_FromStringAndSize(const char*, size_t) @@ -9522,8 +9541,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s /* "string.to_py":43 * - * @cname("__pyx_convert_PyStr_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyStr_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyStr_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -9531,7 +9550,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyStr_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyStr_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9541,24 +9560,24 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyStr_string_to_py_std__in_string(s /* "string.to_py":49 * - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ -static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyBytes_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":50 - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * cdef extern from *: * cdef object __Pyx_PyByteArray_FromStringAndSize(const char*, size_t) @@ -9572,8 +9591,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string /* "string.to_py":49 * - * @cname("__pyx_convert_PyBytes_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyBytes_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyBytes_FromStringAndSize(s.data(), s.size()) * cdef extern from *: */ @@ -9581,7 +9600,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyBytes_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9591,24 +9610,24 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyBytes_string_to_py_std__in_string /* "string.to_py":55 * - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) * */ -static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_string(std::string const &__pyx_v_s) { +static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(std::string const &__pyx_v_s) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__pyx_convert_PyByteArray_string_to_py_std__in_string", 1); + __Pyx_RefNannySetupContext("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string", 1); /* "string.to_py":56 - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) # <<<<<<<<<<<<<< * */ @@ -9621,8 +9640,8 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_st /* "string.to_py":55 * - * @cname("__pyx_convert_PyByteArray_string_to_py_std__in_string") - * cdef inline object __pyx_convert_PyByteArray_string_to_py_std__in_string(const string& s): # <<<<<<<<<<<<<< + * @cname("__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string") + * cdef inline object __pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string(const string& s): # <<<<<<<<<<<<<< * return __Pyx_PyByteArray_FromStringAndSize(s.data(), s.size()) * */ @@ -9630,7 +9649,7 @@ static CYTHON_INLINE PyObject *__pyx_convert_PyByteArray_string_to_py_std__in_st /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("string.to_py.__pyx_convert_PyByteArray_string_to_py_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("string.to_py.__pyx_convert_PyByteArray_string_to_py_6libcpp_6string_std__in_string", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9862,7 +9881,7 @@ static std::vector __pyx_convert_vector_from_py_std_3a__3a_string( * return v * */ - __pyx_t_5 = __pyx_convert_string_from_py_std__in_string(__pyx_v_item); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 48, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_v_item); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 48, __pyx_L1_error) try { __pyx_v_v.push_back(((std::string)__pyx_t_5)); } catch(...) { @@ -9950,7 +9969,7 @@ static std::string __pyx_f_10_pywrapfst_tostring(PyObject *__pyx_v_data) { * raise TypeError(f"Expected {str.__name__} but received " * f"{type(data).__name__}: {data!r}") */ - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 194, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 194, __pyx_L1_error) __pyx_r = __pyx_t_2; goto __pyx_L0; @@ -10099,7 +10118,7 @@ static std::string __pyx_f_10_pywrapfst_weight_tostring(PyObject *__pyx_v_data) * elif isinstance(data, numbers.Number): * return str(data) */ - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 222, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 222, __pyx_L1_error) __pyx_r = __pyx_t_2; goto __pyx_L0; @@ -10137,7 +10156,7 @@ static std::string __pyx_f_10_pywrapfst_weight_tostring(PyObject *__pyx_v_data) */ __pyx_t_4 = __Pyx_PyObject_Str(__pyx_v_data); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); - __pyx_t_2 = __pyx_convert_string_from_py_std__in_string(__pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 224, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 224, __pyx_L1_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __pyx_r = __pyx_t_2; goto __pyx_L0; @@ -10369,7 +10388,7 @@ static fst::FarType __pyx_f_10_pywrapfst__get_far_type(std::string const &__pyx_ */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_far_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 250, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_far_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 250, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -10486,7 +10505,7 @@ static enum fst::ClosureType __pyx_f_10_pywrapfst__get_closure_type(std::string */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_closure_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 270, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_closure_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 270, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -10603,7 +10622,7 @@ static enum fst::ComposeFilter __pyx_f_10_pywrapfst__get_compose_filter(std::str */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_compose_filter); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 296, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_compose_filter); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 296, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -10720,7 +10739,7 @@ static enum fst::DeterminizeType __pyx_f_10_pywrapfst__get_determinize_type(std: */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_det_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 317, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_det_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 317, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -10837,7 +10856,7 @@ static enum fst::EpsNormalizeType __pyx_f_10_pywrapfst__get_eps_norm_type(std::s */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_eps_norm_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 338, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_eps_norm_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 338, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -10954,7 +10973,7 @@ static fst::ProjectType __pyx_f_10_pywrapfst__get_project_type(std::string const */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_project_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 359, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_project_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 359, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -11071,7 +11090,7 @@ static enum fst::QueueType __pyx_f_10_pywrapfst__get_queue_type(std::string cons */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_queue_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 383, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_queue_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 383, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -11188,7 +11207,7 @@ static fst::script::RandArcSelection __pyx_f_10_pywrapfst__get_rand_arc_selectio */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_select); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 408, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_select); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 408, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -11305,7 +11324,7 @@ static enum fst::ReplaceLabelType __pyx_f_10_pywrapfst__get_replace_label_type(s */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_replace_label_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 436, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_replace_label_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 436, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -11422,7 +11441,7 @@ static enum fst::ReweightType __pyx_f_10_pywrapfst__get_reweight_type(std::strin */ __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_FstArgError); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_reweight_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 457, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_reweight_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_4), __pyx_empty_unicode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 457, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -11555,7 +11574,7 @@ static PyObject *__pyx_pf_10_pywrapfst_6Weight___repr__(struct __pyx_obj_10_pywr __PYX_ERR(0, 484, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst_Weight *)__pyx_v_self->__pyx_vtab)->type(__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 484, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 484, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -11571,7 +11590,7 @@ static PyObject *__pyx_pf_10_pywrapfst_6Weight___repr__(struct __pyx_obj_10_pywr __PYX_ERR(0, 484, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst_Weight *)__pyx_v_self->__pyx_vtab)->to_string(__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 484, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 484, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 484, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -11670,7 +11689,7 @@ static PyObject *__pyx_pf_10_pywrapfst_6Weight_2__str__(struct __pyx_obj_10_pywr __PYX_ERR(0, 487, __pyx_L1_error) } __pyx_t_1 = ((struct __pyx_vtabstruct_10_pywrapfst_Weight *)__pyx_v_self->__pyx_vtab)->to_string(__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 487, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -11742,7 +11761,7 @@ static PyObject *__pyx_pf_10_pywrapfst_6Weight_4__float__(struct __pyx_obj_10_py __PYX_ERR(0, 493, __pyx_L1_error) } __pyx_t_1 = ((struct __pyx_vtabstruct_10_pywrapfst_Weight *)__pyx_v_self->__pyx_vtab)->to_string(__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 493, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 493, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_t_3 = __Pyx_PyNumber_Float(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 493, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); @@ -12979,7 +12998,7 @@ static std::string __pyx_f_10_pywrapfst_6Weight_to_string(struct __pyx_obj_10_py __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 552, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 552, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -13085,7 +13104,7 @@ static PyObject *__pyx_pf_10_pywrapfst_6Weight_20to_string(struct __pyx_obj_10_p __Pyx_RefNannySetupContext("to_string", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_6Weight_to_string(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 552, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 552, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 552, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -13165,7 +13184,7 @@ static std::string __pyx_f_10_pywrapfst_6Weight_type(struct __pyx_obj_10_pywrapf __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -13272,7 +13291,7 @@ static PyObject *__pyx_pf_10_pywrapfst_6Weight_22type(struct __pyx_obj_10_pywrap __Pyx_RefNannySetupContext("type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_6Weight_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 555, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 555, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 555, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -14953,7 +14972,7 @@ static fst::script::WeightClass __pyx_f_10_pywrapfst__get_WeightClass_or_zero(st __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_FstBadWeightError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __pyx_f_10_pywrapfst_weight_tostring(__pyx_v_weight); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 717, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 717, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 717, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; @@ -15141,7 +15160,7 @@ static fst::script::WeightClass __pyx_f_10_pywrapfst__get_WeightClass_or_one(std __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_FstBadWeightError); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_2 = __pyx_f_10_pywrapfst_weight_tostring(__pyx_v_weight); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 746, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 746, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 746, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = NULL; __pyx_t_7 = 0; @@ -16362,7 +16381,7 @@ static PyObject *__pyx_f_10_pywrapfst_15SymbolTableView_checksum(struct __pyx_ob __PYX_ERR(0, 848, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_10_pywrapfst_SymbolTableView *)__pyx_v_self->__pyx_vtab)->_raw_ptr_or_raise(__pyx_v_self); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 848, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_t_6->CheckSum()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 848, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6->CheckSum()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 848, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; @@ -16855,7 +16874,7 @@ static PyObject *__pyx_pf_10_pywrapfst_15SymbolTableView_12find(struct __pyx_obj */ __Pyx_XDECREF(__pyx_r); __pyx_t_10 = __Pyx_PyInt_As_int64_t(__pyx_v_key); if (unlikely((__pyx_t_10 == ((int64_t)-1)) && PyErr_Occurred())) __PYX_ERR(0, 879, __pyx_L5_except_error) - __pyx_t_11 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v__raw->Find(__pyx_t_10)); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 879, __pyx_L5_except_error) + __pyx_t_11 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v__raw->Find(__pyx_t_10)); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 879, __pyx_L5_except_error) __Pyx_GOTREF(__pyx_t_11); __pyx_r = __pyx_t_11; __pyx_t_11 = 0; @@ -17260,7 +17279,7 @@ static PyObject *__pyx_f_10_pywrapfst_15SymbolTableView_labeled_checksum(struct __PYX_ERR(0, 901, __pyx_L1_error) } __pyx_t_6 = ((struct __pyx_vtabstruct_10_pywrapfst_SymbolTableView *)__pyx_v_self->__pyx_vtab)->_raw_ptr_or_raise(__pyx_v_self); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 901, __pyx_L1_error) - __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_t_6->LabeledCheckSum()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(__pyx_t_6->LabeledCheckSum()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; @@ -17768,7 +17787,7 @@ static std::string __pyx_f_10_pywrapfst_15SymbolTableView_name(struct __pyx_obj_ __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 925, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -17876,7 +17895,7 @@ static PyObject *__pyx_pf_10_pywrapfst_15SymbolTableView_20name(struct __pyx_obj __Pyx_RefNannySetupContext("name", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_15SymbolTableView_name(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 925, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 925, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 925, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -18763,7 +18782,7 @@ static PyObject *__pyx_f_10_pywrapfst_15SymbolTableView_write_to_string(struct _ * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v__sstrm.str()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 993, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(__pyx_v__sstrm.str()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 993, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; @@ -18917,7 +18936,7 @@ static PyObject *__pyx_pf_10_pywrapfst_28_EncodeMapperSymbolTableView___repr__(s __PYX_ERR(0, 1012, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst__EncodeMapperSymbolTableView *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.name(((struct __pyx_obj_10_pywrapfst_SymbolTableView *)__pyx_v_self), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1012, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1012, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_5), __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); @@ -19115,7 +19134,7 @@ static PyObject *__pyx_pf_10_pywrapfst_19_FstSymbolTableView___repr__(struct __p __PYX_ERR(0, 1035, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst__FstSymbolTableView *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.name(((struct __pyx_obj_10_pywrapfst_SymbolTableView *)__pyx_v_self), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1035, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1035, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_5), __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1035, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); @@ -20315,7 +20334,7 @@ static PyObject *__pyx_pf_10_pywrapfst_26_MutableFstSymbolTableView___repr__(str __PYX_ERR(0, 1123, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst__MutableFstSymbolTableView *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.name(((struct __pyx_obj_10_pywrapfst_SymbolTableView *)__pyx_v_self), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1123, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1123, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_5), __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1123, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); @@ -20497,7 +20516,7 @@ static PyObject *__pyx_pf_10_pywrapfst_11SymbolTable___repr__(struct __pyx_obj_1 __PYX_ERR(0, 1148, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst_SymbolTable *)__pyx_v_self->__pyx_base.__pyx_base.__pyx_vtab)->__pyx_base.__pyx_base.name(((struct __pyx_obj_10_pywrapfst_SymbolTableView *)__pyx_v_self), 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1148, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1148, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_6 = __Pyx_PyObject_FormatSimpleAndDecref(PyObject_Repr(__pyx_t_5), __pyx_empty_unicode); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1148, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); @@ -21974,7 +21993,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } - __pyx_v_state = __pyx_convert_string_from_py_std__in_string(values[0]); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1262, __pyx_L3_error) + __pyx_v_state = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(values[0]); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1262, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; @@ -22929,7 +22948,7 @@ static PyObject *__pyx_pf_10_pywrapfst_20_SymbolTableIterator_6__next__(struct _ __Pyx_XDECREF(__pyx_r); __pyx_t_3 = __Pyx_PyInt_From_int64_t(__pyx_v__label); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v__symbol); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1349, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v__symbol); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1349, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -23887,7 +23906,7 @@ static std::string __pyx_f_10_pywrapfst_12EncodeMapper_arc_type(struct __pyx_obj __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1416, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1416, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -23994,7 +24013,7 @@ static PyObject *__pyx_pf_10_pywrapfst_12EncodeMapper_8arc_type(struct __pyx_obj __Pyx_RefNannySetupContext("arc_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_12EncodeMapper_arc_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1416, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -24074,7 +24093,7 @@ static std::string __pyx_f_10_pywrapfst_12EncodeMapper_weight_type(struct __pyx_ __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1424, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1424, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -24181,7 +24200,7 @@ static PyObject *__pyx_pf_10_pywrapfst_12EncodeMapper_10weight_type(struct __pyx __Pyx_RefNannySetupContext("weight_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_12EncodeMapper_weight_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1424, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1424, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1424, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -24931,7 +24950,7 @@ static PyObject *__pyx_pf_10_pywrapfst_12EncodeMapper_18read_from_string(PyObjec * cpdef void write(self, source) except *: */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_string_from_py_std__in_string(__pyx_v_state); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1495, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_v_state); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1495, __pyx_L1_error) __pyx_t_2 = ((PyObject *)__pyx_f_10_pywrapfst__read_EncodeMapper_from_string(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_1), 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1495, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; @@ -25396,7 +25415,7 @@ static PyObject *__pyx_f_10_pywrapfst_12EncodeMapper_write_to_string(struct __py * cpdef _EncodeMapperSymbolTableView input_symbols(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v__sstrm.str()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1528, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(__pyx_v__sstrm.str()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1528, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; @@ -26719,7 +26738,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } - __pyx_v_state = __pyx_convert_string_from_py_std__in_string(values[0]); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1603, __pyx_L3_error) + __pyx_v_state = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(values[0]); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1603, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; @@ -26882,7 +26901,7 @@ static std::string __pyx_f_10_pywrapfst_3Fst__local_render_svg(std::string const */ __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_proc, __pyx_n_s_communicate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_dot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1643, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_dot); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_t_2 = PyUnicode_AsUTF8String(((PyObject*)__pyx_t_3)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); @@ -26917,7 +26936,7 @@ static std::string __pyx_f_10_pywrapfst_3Fst__local_render_svg(std::string const __pyx_t_1 = __Pyx_GetItemInt(__pyx_t_4, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1643, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_7 = __pyx_convert_string_from_py_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1643, __pyx_L1_error) + __pyx_t_7 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1643, __pyx_L1_error) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_7; goto __pyx_L0; @@ -27116,7 +27135,7 @@ static PyObject *__pyx_pf_10_pywrapfst_3Fst__repr_svg_(struct __pyx_obj_10_pywra */ __Pyx_XDECREF(__pyx_r); __pyx_t_4 = __pyx_f_10_pywrapfst_3Fst__local_render_svg(__pyx_v__sstrm.str()); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1674, __pyx_L3_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1674, __pyx_L3_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1674, __pyx_L3_error) __Pyx_GOTREF(__pyx_t_5); __pyx_r = __pyx_t_5; __pyx_t_5 = 0; @@ -27553,7 +27572,7 @@ static PyObject *__pyx_pf_10_pywrapfst_3Fst_6__repr__(struct __pyx_obj_10_pywrap __PYX_ERR(0, 1688, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst_Fst *)__pyx_v_self->__pyx_vtab)->fst_type(__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1688, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1688, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1688, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -27652,7 +27671,7 @@ static PyObject *__pyx_pf_10_pywrapfst_3Fst_8__str__(struct __pyx_obj_10_pywrapf __PYX_ERR(0, 1691, __pyx_L1_error) } __pyx_t_1 = ((struct __pyx_vtabstruct_10_pywrapfst_Fst *)__pyx_v_self->__pyx_vtab)->print(__pyx_v_self, 0, NULL); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1691, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1691, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1691, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -27740,7 +27759,7 @@ static std::string __pyx_f_10_pywrapfst_3Fst_arc_type(struct __pyx_obj_10_pywrap __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1693, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1693, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -27847,7 +27866,7 @@ static PyObject *__pyx_pf_10_pywrapfst_3Fst_10arc_type(struct __pyx_obj_10_pywra __Pyx_RefNannySetupContext("arc_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_3Fst_arc_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1693, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1693, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1693, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -29639,7 +29658,7 @@ static std::string __pyx_f_10_pywrapfst_3Fst_fst_type(struct __pyx_obj_10_pywrap __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1823, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1823, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -29746,7 +29765,7 @@ static PyObject *__pyx_pf_10_pywrapfst_3Fst_20fst_type(struct __pyx_obj_10_pywra __Pyx_RefNannySetupContext("fst_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_3Fst_fst_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1823, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1823, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1823, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -31276,7 +31295,7 @@ static std::string __pyx_f_10_pywrapfst_3Fst_print(struct __pyx_obj_10_pywrapfst __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } - __pyx_t_8 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1911, __pyx_L1_error) + __pyx_t_8 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1911, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_8; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -31718,7 +31737,7 @@ static PyObject *__pyx_pf_10_pywrapfst_3Fst_32print(struct __pyx_obj_10_pywrapfs __pyx_t_2.show_weight_one = __pyx_v_show_weight_one; __pyx_t_2.missing_sym = __pyx_v_missing_sym; __pyx_t_1 = __pyx_vtabptr_10_pywrapfst_Fst->print(__pyx_v_self, 1, &__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1911, __pyx_L1_error) - __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1911, __pyx_L1_error) + __pyx_t_3 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1911, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_3); __pyx_r = __pyx_t_3; __pyx_t_3 = 0; @@ -32208,7 +32227,7 @@ static PyObject *__pyx_pf_10_pywrapfst_3Fst_38read_from_string(CYTHON_UNUSED PyT * cpdef int64_t start(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_string_from_py_std__in_string(__pyx_v_state); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2012, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_v_state); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2012, __pyx_L1_error) __pyx_t_2 = ((PyObject *)__pyx_f_10_pywrapfst__read_Fst_from_string(__PYX_STD_MOVE_IF_SUPPORTED(__pyx_t_1), 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2012, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; @@ -32857,7 +32876,7 @@ static std::string __pyx_f_10_pywrapfst_3Fst_weight_type(struct __pyx_obj_10_pyw __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2044, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2044, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -32964,7 +32983,7 @@ static PyObject *__pyx_pf_10_pywrapfst_3Fst_46weight_type(struct __pyx_obj_10_py __Pyx_RefNannySetupContext("weight_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_3Fst_weight_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 2044, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2044, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2044, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -33420,7 +33439,7 @@ static PyObject *__pyx_f_10_pywrapfst_3Fst_write_to_string(struct __pyx_obj_10_p * */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_std__in_string(__pyx_v__sstrm.str()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2087, __pyx_L1_error) + __pyx_t_1 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(__pyx_v__sstrm.str()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2087, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_1); __pyx_r = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; @@ -43637,7 +43656,7 @@ PyObject *__pyx_args, PyObject *__pyx_kwds } else { values[0] = __Pyx_Arg_FASTCALL(__pyx_args, 0); } - __pyx_v_state = __pyx_convert_string_from_py_std__in_string(values[0]); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3029, __pyx_L3_error) + __pyx_v_state = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(values[0]); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 3029, __pyx_L3_error) } goto __pyx_L6_skip; __pyx_L5_argtuple_error:; @@ -58225,9 +58244,9 @@ static PyObject *__pyx_pf_10_pywrapfst_54shortestdistance(CYTHON_UNUSED PyObject PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%.30s'", "_fst"); __PYX_ERR(0, 4331, __pyx_L1_error) } - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v_ifst->_fst.get()->WeightType()); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4331, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v_ifst->_fst.get()->WeightType()); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_7genexpr__pyx_v_weight.ToString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4331, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_7genexpr__pyx_v_weight.ToString()); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 4331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_6); __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 4331, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_7); @@ -60718,7 +60737,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarReader_2__repr__(struct __pyx_obj_10_ __PYX_ERR(0, 4594, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst_FarReader *)__pyx_v_self->__pyx_vtab)->far_type(__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4594, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4594, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4594, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -60857,7 +60876,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarReader_4open(CYTHON_UNUSED PyTypeObje __Pyx_XDECREF_SET(__pyx_8genexpr1__pyx_v_source, __pyx_t_4); __pyx_t_4 = 0; __pyx_t_5 = __pyx_f_10_pywrapfst_path_tostring(__pyx_8genexpr1__pyx_v_source); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4615, __pyx_L5_error) - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4615, __pyx_L5_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_5); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4615, __pyx_L5_error) __Pyx_GOTREF(__pyx_t_4); if (unlikely(__Pyx_ListComp_Append(__pyx_t_1, (PyObject*)__pyx_t_4))) __PYX_ERR(0, 4615, __pyx_L5_error) __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -61067,7 +61086,7 @@ static std::string __pyx_f_10_pywrapfst_9FarReader_arc_type(struct __pyx_obj_10_ __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4624, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4624, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -61174,7 +61193,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarReader_6arc_type(struct __pyx_obj_10_ __Pyx_RefNannySetupContext("arc_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_9FarReader_arc_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4624, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4624, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4624, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -61628,7 +61647,7 @@ static std::string __pyx_f_10_pywrapfst_9FarReader_far_type(struct __pyx_obj_10_ __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4654, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4654, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -61734,7 +61753,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarReader_12far_type(struct __pyx_obj_10 __Pyx_RefNannySetupContext("far_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_9FarReader_far_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4654, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4654, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4654, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -62248,7 +62267,7 @@ static std::string __pyx_f_10_pywrapfst_9FarReader_get_key(struct __pyx_obj_10_p __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4683, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4683, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -62355,7 +62374,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarReader_18get_key(struct __pyx_obj_10_ __Pyx_RefNannySetupContext("get_key", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_9FarReader_get_key(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4683, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4683, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4683, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -62966,7 +62985,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarReader_26__next__(struct __pyx_obj_10 * # This just registers this class as a possible iterator. */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_v__key); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4722, __pyx_L1_error) + __pyx_t_4 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_v__key); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 4722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4722, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); @@ -63415,7 +63434,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarWriter_2__repr__(struct __pyx_obj_10_ __PYX_ERR(0, 4753, __pyx_L1_error) } __pyx_t_4 = ((struct __pyx_vtabstruct_10_pywrapfst_FarWriter *)__pyx_v_self->__pyx_vtab)->far_type(__pyx_v_self, 0); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4753, __pyx_L1_error) - __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4753, __pyx_L1_error) + __pyx_t_5 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 4753, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_5); __pyx_t_3 = (__Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) > __pyx_t_3) ? __Pyx_PyUnicode_MAX_CHAR_VALUE(__pyx_t_5) : __pyx_t_3; __pyx_t_2 += __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5); @@ -64191,7 +64210,7 @@ static std::string __pyx_f_10_pywrapfst_9FarWriter_arc_type(struct __pyx_obj_10_ __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4814, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4814, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -64298,7 +64317,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarWriter_8arc_type(struct __pyx_obj_10_ __Pyx_RefNannySetupContext("arc_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_9FarWriter_arc_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4814, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4814, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4814, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -64565,7 +64584,7 @@ static std::string __pyx_f_10_pywrapfst_9FarWriter_far_type(struct __pyx_obj_10_ __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - __pyx_t_6 = __pyx_convert_string_from_py_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4833, __pyx_L1_error) + __pyx_t_6 = __pyx_convert_string_from_py_6libcpp_6string_std__in_string(__pyx_t_2); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4833, __pyx_L1_error) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __pyx_r = __pyx_t_6; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -64672,7 +64691,7 @@ static PyObject *__pyx_pf_10_pywrapfst_9FarWriter_12far_type(struct __pyx_obj_10 __Pyx_RefNannySetupContext("far_type", 1); __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_f_10_pywrapfst_9FarWriter_far_type(__pyx_v_self, 1); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 4833, __pyx_L1_error) - __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4833, __pyx_L1_error) + __pyx_t_2 = __pyx_convert_PyUnicode_string_to_py_6libcpp_6string_std__in_string(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4833, __pyx_L1_error) __Pyx_GOTREF(__pyx_t_2); __pyx_r = __pyx_t_2; __pyx_t_2 = 0; @@ -68032,8 +68051,10 @@ static PyTypeObject __pyx_type_10_pywrapfst_FarWriter = { }; #endif +#if CYTHON_USE_FREELISTS static struct __pyx_obj_10_pywrapfst___pyx_scope_struct____iter__ *__pyx_freelist_10_pywrapfst___pyx_scope_struct____iter__[8]; static int __pyx_freecount_10_pywrapfst___pyx_scope_struct____iter__ = 0; +#endif static PyObject *__pyx_tp_new_10_pywrapfst___pyx_scope_struct____iter__(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { PyObject *o; @@ -68041,7 +68062,7 @@ static PyObject *__pyx_tp_new_10_pywrapfst___pyx_scope_struct____iter__(PyTypeOb allocfunc alloc_func = (allocfunc)PyType_GetSlot(t, Py_tp_alloc); o = alloc_func(t, 0); #else - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (likely((int)(__pyx_freecount_10_pywrapfst___pyx_scope_struct____iter__ > 0) & (int)(t->tp_basicsize == sizeof(struct __pyx_obj_10_pywrapfst___pyx_scope_struct____iter__)))) { o = (PyObject*)__pyx_freelist_10_pywrapfst___pyx_scope_struct____iter__[--__pyx_freecount_10_pywrapfst___pyx_scope_struct____iter__]; memset(o, 0, sizeof(struct __pyx_obj_10_pywrapfst___pyx_scope_struct____iter__)); @@ -68068,7 +68089,7 @@ static void __pyx_tp_dealloc_10_pywrapfst___pyx_scope_struct____iter__(PyObject #endif PyObject_GC_UnTrack(o); Py_CLEAR(p->__pyx_v_self); - #if CYTHON_COMPILING_IN_CPYTHON + #if CYTHON_USE_FREELISTS if (((int)(__pyx_freecount_10_pywrapfst___pyx_scope_struct____iter__ < 8) & (int)(Py_TYPE(o)->tp_basicsize == sizeof(struct __pyx_obj_10_pywrapfst___pyx_scope_struct____iter__)))) { __pyx_freelist_10_pywrapfst___pyx_scope_struct____iter__[__pyx_freecount_10_pywrapfst___pyx_scope_struct____iter__++] = ((struct __pyx_obj_10_pywrapfst___pyx_scope_struct____iter__ *)o); } else @@ -77503,11 +77524,11 @@ static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyO { int eq = __Pyx_PyUnicode_Equals(s, PyTuple_GET_ITEM(kwnames, i), Py_EQ); if (unlikely(eq != 0)) { - if (unlikely(eq < 0)) return NULL; // error + if (unlikely(eq < 0)) return NULL; return kwvalues[i]; } } - return NULL; // not found (no exception set) + return NULL; } #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) { @@ -77805,7 +77826,7 @@ static int __Pyx_ParseOptionalKeywords( if (*name) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - Py_INCREF(value); // transfer ownership of value to values + Py_INCREF(value); Py_DECREF(key); #endif key = NULL; @@ -77824,7 +77845,7 @@ static int __Pyx_ParseOptionalKeywords( && _PyString_Eq(**name, key)) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - value = NULL; // ownership transferred to values + value = NULL; #endif break; } @@ -77856,7 +77877,7 @@ static int __Pyx_ParseOptionalKeywords( if (cmp == 0) { values[name-argnames] = value; #if CYTHON_AVOID_BORROWED_REFS - value = NULL; // ownership transferred to values + value = NULL; #endif break; } @@ -78383,9 +78404,10 @@ static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) { /* IterFinish */ static CYTHON_INLINE int __Pyx_IterFinish(void) { + PyObject* exc_type; __Pyx_PyThreadState_declare __Pyx_PyThreadState_assign - PyObject* exc_type = __Pyx_PyErr_CurrentExceptionType(); + exc_type = __Pyx_PyErr_CurrentExceptionType(); if (unlikely(exc_type)) { if (unlikely(!__Pyx_PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) return -1; @@ -80579,7 +80601,7 @@ static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, default: return NULL; } - return ((_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames); + return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))def->ml_meth)(self, args, nargs, kwnames); } static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames) { @@ -81304,7 +81326,7 @@ static PyCodeObject* __Pyx_CreateCodeObjectForTraceback( #else py_code = PyCode_NewEmpty(filename, funcname, py_line); #endif - Py_XDECREF(py_funcname); // XDECREF since it's only set on Py3 if cline + Py_XDECREF(py_funcname); return py_code; bad: Py_XDECREF(py_funcname); diff --git a/pynini.egg-info/PKG-INFO b/pynini.egg-info/PKG-INFO deleted file mode 100644 index a53d72e..0000000 --- a/pynini.egg-info/PKG-INFO +++ /dev/null @@ -1,125 +0,0 @@ -Metadata-Version: 2.1 -Name: pynini -Version: 2.1.6 -Summary: Finite-state grammar compilation -Home-page: http://pynini.opengrm.org -Author: Kyle Gorman -Author-email: kbg@google.com -License: Apache 2.0 -Project-URL: homepage, https://pynini.opengrm.org -Keywords: computational linguistics,morphology,natural language processing,language -Classifier: Programming Language :: Python :: 3.6 -Classifier: Programming Language :: Python :: 3.7 -Classifier: Programming Language :: Python :: 3.8 -Classifier: Programming Language :: Python :: 3.9 -Classifier: Programming Language :: Python :: 3.10 -Classifier: Programming Language :: Python :: 3.11 -Classifier: Programming Language :: Python :: 3.12 -Classifier: Development Status :: 5 - Production/Stable -Classifier: Environment :: Other Environment -Classifier: Environment :: Console -Classifier: Intended Audience :: Developers -Classifier: License :: OSI Approved :: Apache Software License -Classifier: Operating System :: OS Independent -Classifier: Topic :: Software Development :: Libraries :: Python Modules -Classifier: Topic :: Text Processing :: Linguistic -Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence -Classifier: Topic :: Scientific/Engineering :: Mathematics -Requires-Python: >=3.6 -Description-Content-Type: text/markdown -License-File: LICENSE -License-File: AUTHORS - -# OpenGrm Pynini - -This is a a Python extension module for compiling, optimizing and applying -grammar rules. Rules can be compiled into weighted finite state transducers, -pushdown transducers, or multi-pushdown transducers. It uses OpenFst -finite-state transducers (FSTs) and FST archives (FArs) as inputs and outputs. - -This library is primarily developed by [Kyle Gorman](mailto:kbg@google.com). - -If you use Pynini in your research, we would appreciate if you cite the -following paper: - -> K. Gorman. 2016. -> [Pynini: A Python library for weighted finite-state grammar compilation](http://openfst.cs.nyu.edu/twiki/pub/GRM/Pynini/pynini-paper.pdf). -> In *Proc. ACL Workshop on Statistical NLP and Weighted Automata*, 75-80. - -(Note that some of the code samples in the paper are now out of date and not -expected to work.) - -## Dependencies - -- A standards-compliant C++17 compiler (GCC \>= 7 or Clang \>= 700) -- The compatible recent version of [OpenFst](http://openfst.org) (see - [`NEWS`](NEWS) for this) built with the `grm` extensions (i.e., built with - `./configure --enable-grm`) and headers -- [Python 3.6+](https://www.python.org) and headers - -## Installation instructions - -There are various ways to install Pynini depending on your platform. - -### Windows - -While Pynini is neither designed for nor tested on Windows, it can be installed -using the -[Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10) -(WSL). Simply enter the WSL environment and follow the Linux instructions below. - -### MacOS - -The pre-compiled library can be installed from -[`conda-forge`](https://conda-forge.org/) by running `conda install -c -conda-forge pynini`. - -Alternatively, one can build from source from [PyPI](https://pypi.org/) by -running `pip install pynini`. - -Finally, one can use [Bazel](https://bazel.build) to build from source by -running `bazel build //:all` anywhere in the source tree. - -### Linux - -The pre-compiled library can be installed from -[`conda-forge`](https://conda-forge.org/) by running `conda install -c -conda-forge pynini`. - -Alternatively, one can install a pre-compiled -[`manylinux`](https://github.com/pypa/manylinux) wheel from -[PyPI](https://pypi.org/) by running `pip install pynini`. This will install the -pre-compiled `manylinux` wheel (if available for the release and compatible with -your platform), and build and install from source if not. Unlike the -`conda-forge` option above, which also installs [OpenFst](http://openfst.org/) -and [Graphviz](https://graphviz.org/), this does not install the OpenFst or -Graphviz command-line tools. See the enclosed -[`Dockerfile`](third_party/Dockerfile) for instructions for building and -deploying `manylinux` wheels. - -Finally, one can use [Bazel](https://bazel.build) to build from source by -running `bazel build //:all` anywhere in the source tree. - -## Testing - -To confirm successful installation, run `pip install -r requirements`, then -`python tests/pynini_test.py`. If all tests pass, the final line will read `OK`; -a successful run will log some errors to STDERR (this is working as expected). - -## Python version support - -Pynini 2.0.0 and onward support Python 3. Pynini 2.1 versions (onward) drop -Python 2 support. The current release supports Python 3.6--3.12. - -# License - -Pynini is released under the Apache license. See [`LICENSE`](LICENSE) for more -information. - -# Interested in contributing? - -See [`CONTRIBUTING`](CONTRIBUTING) for more information. - -# Mandatory disclaimer - -This is not an official Google product. diff --git a/pynini.egg-info/SOURCES.txt b/pynini.egg-info/SOURCES.txt deleted file mode 100644 index 51d94d7..0000000 --- a/pynini.egg-info/SOURCES.txt +++ /dev/null @@ -1,148 +0,0 @@ -AUTHORS -BUILD.bazel -CHEATSHEET -CONTRIBUTING -LICENSE -MANIFEST.in -NEWS -README.md -WORKSPACE.bazel -pyproject.toml -requirements.txt -setup.py -bazel/BUILD.bazel -bazel/cython.BUILD.bazel -bazel/six.BUILD.bazel -bazel/workspace.bzl -extensions/BUILD.bazel -extensions/_pynini.cpp -extensions/_pynini.pyx -extensions/_pywrapfst.cpp -extensions/_pywrapfst.pxd -extensions/_pywrapfst.pyx -extensions/cdrewrite.h -extensions/cdrewritescript.cc -extensions/cdrewritescript.h -extensions/checkprops.h -extensions/cios.pxd -extensions/cmemory.pxd -extensions/concatrange.h -extensions/concatrangescript.cc -extensions/concatrangescript.h -extensions/cpynini.pxd -extensions/cpywrapfst.pxd -extensions/cross.h -extensions/crossscript.cc -extensions/crossscript.h -extensions/defaults.cc -extensions/defaults.h -extensions/getters.cc -extensions/getters.h -extensions/lenientlycompose.h -extensions/lenientlycomposescript.cc -extensions/lenientlycomposescript.h -extensions/optimize.h -extensions/optimizescript.cc -extensions/optimizescript.h -extensions/paths.h -extensions/pathsscript.cc -extensions/pathsscript.h -extensions/prefix_tree.h -extensions/string-view-fst.h -extensions/stringcompile.cc -extensions/stringcompile.h -extensions/stringcompilescript.cc -extensions/stringcompilescript.h -extensions/stringfile.cc -extensions/stringfile.h -extensions/stringmap.h -extensions/stringmapscript.cc -extensions/stringmapscript.h -extensions/stringprint.h -extensions/stringprintscript.cc -extensions/stringprintscript.h -extensions/stringutil.cc -extensions/stringutil.h -pynini/BUILD.bazel -pynini/__init__.py -pynini/__init__.pyi -pynini/py.typed -pynini.egg-info/PKG-INFO -pynini.egg-info/SOURCES.txt -pynini.egg-info/dependency_links.txt -pynini.egg-info/not-zip-safe -pynini.egg-info/top_level.txt -pynini/examples/BUILD.bazel -pynini/examples/__init__.py -pynini/examples/case.py -pynini/examples/chatspeak.py -pynini/examples/chatspeak_model.py -pynini/examples/dates.py -pynini/examples/g2p.py -pynini/examples/numbers.py -pynini/examples/plurals.py -pynini/examples/py.typed -pynini/examples/t9.py -pynini/examples/weather.py -pynini/export/BUILD.bazel -pynini/export/__init__.py -pynini/export/export.py -pynini/export/grm.py -pynini/export/grm_example.py -pynini/export/grm_py_build_defs.bzl -pynini/export/multi_grm.py -pynini/export/multi_grm_example.py -pynini/export/py.typed -pynini/lib/BUILD.bazel -pynini/lib/__init__.py -pynini/lib/byte.py -pynini/lib/edit_transducer.py -pynini/lib/features.py -pynini/lib/paradigms.py -pynini/lib/py.typed -pynini/lib/pynutil.py -pynini/lib/rewrite.py -pynini/lib/rule_cascade.py -pynini/lib/stringfile.py -pynini/lib/tagger.py -pynini/lib/utf8.py -pywrapfst/BUILD.bazel -pywrapfst/__init__.py -pywrapfst/__init__.pyi -pywrapfst/py.typed -scripts/make_chatspeak_lm -tests/BUILD.bazel -tests/byte_test.py -tests/case_test.py -tests/chatspeak_model_test.py -tests/chatspeak_test.py -tests/dates_test.py -tests/edit_transducer_test.py -tests/export_test.py -tests/features_test.py -tests/g2p_test.py -tests/grm_test.py -tests/multi_grm_test.py -tests/numbers_test.py -tests/paradigms_test.py -tests/plurals_test.py -tests/pynini_test.py -tests/pynutil_test.py -tests/rewrite_test.py -tests/rule_cascade_test.py -tests/stringfile_test.py -tests/t9_test.py -tests/tagger_test.py -tests/utf8_test.py -tests/weather_test.py -tests/testdata/BUILD.bazel -tests/testdata/chatspeak_lexicon.tsv -tests/testdata/str.map -tests/testdata/tokenizer_testdata.tsv -third_party/Dockerfile -third_party/bazel/BUILD.bazel -third_party/bazel/BUILD.tpl -third_party/bazel/README.md -third_party/bazel/cython_library.bzl -third_party/bazel/python_configure.bzl -third_party/bazel/variety.tpl \ No newline at end of file diff --git a/pynini.egg-info/dependency_links.txt b/pynini.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/pynini.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pynini.egg-info/not-zip-safe b/pynini.egg-info/not-zip-safe deleted file mode 100644 index 8b13789..0000000 --- a/pynini.egg-info/not-zip-safe +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pynini.egg-info/top_level.txt b/pynini.egg-info/top_level.txt deleted file mode 100644 index 86b4cfa..0000000 --- a/pynini.egg-info/top_level.txt +++ /dev/null @@ -1,4 +0,0 @@ -_pynini -_pywrapfst -pynini -pywrapfst diff --git a/pynini/BUILD.bazel b/pynini/BUILD.bazel index 70b6b91..e3fc581 100644 --- a/pynini/BUILD.bazel +++ b/pynini/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2022 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pynini/__init__.py b/pynini/__init__.py index 51295a2..2c740e6 100644 --- a/pynini/__init__.py +++ b/pynini/__init__.py @@ -1,5 +1,7 @@ +"""Loads extension into `pynini` namespace.""" + from _pynini import * # Increment after every release. -__version__ = "2.1.6" +__version__ = "2.1.6.post1" diff --git a/pynini/examples/BUILD.bazel b/pynini/examples/BUILD.bazel index a81a0f5..49832ca 100644 --- a/pynini/examples/BUILD.bazel +++ b/pynini/examples/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2022 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pynini/export/BUILD.bazel b/pynini/export/BUILD.bazel index 6b404e6..47c43f5 100644 --- a/pynini/export/BUILD.bazel +++ b/pynini/export/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2022 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pynini/export/grm_py_build_defs.bzl b/pynini/export/grm_py_build_defs.bzl index 729bf50..2e18207 100644 --- a/pynini/export/grm_py_build_defs.bzl +++ b/pynini/export/grm_py_build_defs.bzl @@ -65,6 +65,7 @@ def compile_grm_py( fst_type = None, deps = None, data = None, + genrule_flags = [], out = None, **kwds): """Provides a target to convert a Pynini file into a (portable) FAR file. @@ -80,6 +81,7 @@ def compile_grm_py( @org_openfst//:fst. deps: A list of other grammar targets that we'll need for this grammar. data: Extra data dependencies used in the Pynini file. + genrule_flags: Additional flags to be passed to the Pynini binary. out: Far file to be generated. If not present, then we'll use the `name` followed by ".far". **kwds: Attributes common to all BUILD rules, e.g., testonly, visibility. @@ -104,8 +106,11 @@ def compile_grm_py( native.genrule( name = genrule_name, tools = [bin_name], + srcs = data or [], outs = [genrule_out], - cmd = "$(location %s)" % bin_name + " --output \"$@\"", + cmd = "$(location %s)" % bin_name + + "".join([(" " + flag) for flag in genrule_flags]) + + " --output \"$@\"", message = "Compiling Pynini file %s.py ==> %s in rule" % (name, genrule_out), **kwds ) @@ -128,6 +133,7 @@ def compile_multi_grm_py( fst_type = None, deps = None, data = None, + genrule_flags = [], **kwds): """Provides a target to convert a Pynini file into multiple (portable) FAR files. @@ -145,6 +151,7 @@ def compile_multi_grm_py( @org_openfst//:fst. deps: A list of other compile_grm rules that we'll need for this grammar. data: Extra data dependencies used in the Pynini file. + genrule_flags: Additional flags to be passed to the Pynini binary. **kwds: Attributes common to all BUILD rules, e.g., testonly, visibility. """ if not outs: @@ -185,6 +192,7 @@ def compile_multi_grm_py( tools = [bin_name], outs = genrule_outs, cmd = ("$(location %s)" % bin_name + + "".join([(" " + flag) for flag in genrule_flags]) + " --outputs " + ",".join(genrule_outs_strings)), message = "Compiling Pynini file %s.py into multiple FAR files in rule" % name, **kwds diff --git a/pynini/lib/BUILD.bazel b/pynini/lib/BUILD.bazel index 354ef49..9330c9b 100644 --- a/pynini/lib/BUILD.bazel +++ b/pynini/lib/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2022 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/pyproject.toml b/pyproject.toml index b6031b7..ec1ee15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,10 +20,10 @@ requires = ["Cython>=3.0.6", "setuptools>=32.0.0", "wheel"] [project] name = "pynini" -version = "2.1.6" +version = "2.1.6.post1" description = "Finite-state grammar compilation" readme = "README.md" -requires-python = ">= 3.6" +requires-python = ">= 3.8" license = { text = "Apache 2.0" } authors = [{name = "Kyle Gorman "}] keywords = [ @@ -33,8 +33,6 @@ keywords = [ "language", ] classifiers = [ - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", diff --git a/pywrapfst/BUILD.bazel b/pywrapfst/BUILD.bazel index 4cb0230..4e6b675 100644 --- a/pywrapfst/BUILD.bazel +++ b/pywrapfst/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2022 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 8bfd5a1..0000000 --- a/setup.cfg +++ /dev/null @@ -1,4 +0,0 @@ -[egg_info] -tag_build = -tag_date = 0 - diff --git a/setup.py b/setup.py index 3804ff3..d0caf73 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,7 @@ # # For general information on the Pynini grammar compilation library, see # pynini.opengrm.org. +"""Setup for Pynini.""" import os.path import pathlib @@ -104,18 +105,18 @@ def main() -> None: long_description_content_type="text/markdown", url="http://pynini.opengrm.org", keywords=[ + "computational linguistics", "natural language processing", "speech recognition", "machine learning", ], classifiers=[ - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Development Status :: 5 - Production/Stable", "Environment :: Other Environment", "Environment :: Console", diff --git a/tests/BUILD.bazel b/tests/BUILD.bazel index 184a631..8f1c3b6 100644 --- a/tests/BUILD.bazel +++ b/tests/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2020 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tests/testdata/BUILD.bazel b/tests/testdata/BUILD.bazel index ae9449a..b5f1753 100644 --- a/tests/testdata/BUILD.bazel +++ b/tests/testdata/BUILD.bazel @@ -1,4 +1,4 @@ -# Copyright 2015-2020 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/third_party/Dockerfile b/third_party/Dockerfile index 3df413d..a1c23d8 100644 --- a/third_party/Dockerfile +++ b/third_party/Dockerfile @@ -33,7 +33,14 @@ from quay.io/pypa/manylinux_2_28_x86_64 AS common # The versions we want in the wheels. ENV FST_VERSION "1.8.3" -ENV PYNINI_VERSION "2.1.6" +ENV PYNINI_VERSION "2.1.6.post1" + +# Python 3.6m and 3.7m are end-of-life. The code genreated by Cython appears to +# be incompatble with the Python 3.13t CPython API. +RUN rm -rd \ + /opt/python/cp36-cp36m \ + /opt/python/cp37-cp37m \ + /opt/python/cp313-cp313t # *********************************************************************** # *** Image providing all the requirements for building Pynini wheels *** diff --git a/third_party/bazel/cython_library.bzl b/third_party/bazel/cython_library.bzl index 27031dc..97d4058 100644 --- a/third_party/bazel/cython_library.bzl +++ b/third_party/bazel/cython_library.bzl @@ -1,4 +1,4 @@ -# Copyright 2015-2020 Google LLC. All Rights Reserved. +# Copyright 2015-2024 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.