challenging-america-word-ga.../run.ipynb
Norbert Litkowski b78257156a arpa
2022-04-25 00:28:09 +02:00

51 KiB
Raw Blame History

import pandas as pd
from utils import *
data = get_csv("train/in.tsv.xz")
train_labels = get_csv("train/expected.tsv")
train_data = data[[6,7]]
train_data = pd.concat([train_data, train_labels], axis=1)
train_data[607] = train_data[6] + train_data[0] + train_data[7]
train_data[607] = train_data[607].apply(clean_text)
train_data[607]
0         came fiom the last place to thisnplace and thi...
1         mb boot political obeednattempt to imagine a p...
2         thera were in   only aeventyninenuberlbers lo ...
3         a gixnl man y niterertiiiv diiclosurs regard  ...
4         tin  ub tv thf bbabbt qabjenmr schiffs tutemen...
                                ...                        
432017    sam clendenin bad a fancy for uinscience of me...
432018    witahtt halting the party ware dilven to the s...
432019    it was the last thing that either ofnthem expe...
432020    settlement with the departmentnit is also show...
432021    flour quotationslow extras at   r ®   ncity mi...
Name: 607, Length: 432022, dtype: object
with open("tmp",  "w+") as f:
    for t in train_data[607]:
        f.write(t + "\n")
KENLM_BUILD_PATH = "../kenlm/build/"
!$KENLM_BUILD_PATH/bin/lmplz -o 4 < tmp > model.arpa
=== 1/5 Counting and sorting n-grams ===
Reading /home/me/challenging-america-word-gap-prediction-kenlm/tmp
----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
************************/home/me/kenlm/lm/builder/corpus_count.cc:179 in void lm::builder::{anonymous}::ComplainDisallowed(StringPiece, lm::WarningAction&) threw FormatLoadException.
Special word <s> is not allowed in the corpus.  I plan to support models containing <unk> in the future.  Pass --skip_symbols to convert these symbols to whitespace.
/bin/bash: linia 1:  3982 Przerwane               (zrzut pamięci) ../kenlm/build//bin/lmplz -o 4 < tmp > model.arpa
!rm tmp
!pip install kenlm
Defaulting to user installation because normal site-packages is not writeable
Collecting kenlm
  Downloading kenlm-0.tar.gz (1.4 MB)
     |████████████████████████████████| 1.4 MB 610 kB/s            
[?25hBuilding wheels for collected packages: kenlm
  Building wheel for kenlm (setup.py) ... [?25lerror
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tpogj6ox/kenlm_6280e82d7a044d36906510f5646258a0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tpogj6ox/kenlm_6280e82d7a044d36906510f5646258a0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-s72u5291
       cwd: /tmp/pip-install-tpogj6ox/kenlm_6280e82d7a044d36906510f5646258a0/
  Complete output (380 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'kenlm' extension
  creating build/temp.linux-x86_64-3.10
  creating build/temp.linux-x86_64-3.10/lm
  creating build/temp.linux-x86_64-3.10/python
  creating build/temp.linux-x86_64-3.10/util
  creating build/temp.linux-x86_64-3.10/util/double-conversion
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/bhiksha.cc -o build/temp.linux-x86_64-3.10/lm/bhiksha.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/binary_format.cc -o build/temp.linux-x86_64-3.10/lm/binary_format.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  lm/binary_format.cc: In member function void lm::ngram::BinaryFormat::FinishFile(const lm::ngram::Config&, lm::ngram::ModelType, unsigned int, const std::vector<long unsigned int>&):
  lm/binary_format.cc:261:9: warning: void* memset(void*, int, size_t) clearing an object of type struct lm::ngram::Parameters with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
    261 |   memset(¶ms, 0, sizeof(Parameters));
        |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  In file included from lm/binary_format.cc:1:
  ./lm/binary_format.hh:42:8: note: struct lm::ngram::Parameters declared here
     42 | struct Parameters {
        |        ^~~~~~~~~~
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/config.cc -o build/temp.linux-x86_64-3.10/lm/config.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/lm_exception.cc -o build/temp.linux-x86_64-3.10/lm/lm_exception.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/model.cc -o build/temp.linux-x86_64-3.10/lm/model.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  In file included from ./lm/model.hh:13,
                   from lm/model.cc:1:
  ./lm/vocab.hh:210:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    210 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException);
        |                                           ^~~~~
  ./lm/vocab.hh:211:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    211 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException);
        |                                                                   ^~~~~
  ./lm/vocab.hh:213:85: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    213 | template <class Vocab> void CheckSpecials(const Config &config, const Vocab &vocab) throw(SpecialWordMissingException) {
        |                                                                                     ^~~~~
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/quantize.cc -o build/temp.linux-x86_64-3.10/lm/quantize.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/read_arpa.cc -o build/temp.linux-x86_64-3.10/lm/read_arpa.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/search_hashed.cc -o build/temp.linux-x86_64-3.10/lm/search_hashed.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  In file included from ./lm/model.hh:13,
                   from lm/search_hashed.cc:6:
  ./lm/vocab.hh:210:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    210 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException);
        |                                           ^~~~~
  ./lm/vocab.hh:211:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    211 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException);
        |                                                                   ^~~~~
  ./lm/vocab.hh:213:85: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    213 | template <class Vocab> void CheckSpecials(const Config &config, const Vocab &vocab) throw(SpecialWordMissingException) {
        |                                                                                     ^~~~~
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/search_trie.cc -o build/temp.linux-x86_64-3.10/lm/search_trie.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  In file included from lm/search_trie.cc:12:
  ./lm/vocab.hh:210:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    210 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException);
        |                                           ^~~~~
  ./lm/vocab.hh:211:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    211 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException);
        |                                                                   ^~~~~
  ./lm/vocab.hh:213:85: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    213 | template <class Vocab> void CheckSpecials(const Config &config, const Vocab &vocab) throw(SpecialWordMissingException) {
        |                                                                                     ^~~~~
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/sizes.cc -o build/temp.linux-x86_64-3.10/lm/sizes.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  In file included from ./lm/model.hh:13,
                   from lm/sizes.cc:2:
  ./lm/vocab.hh:210:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    210 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException);
        |                                           ^~~~~
  ./lm/vocab.hh:211:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    211 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException);
        |                                                                   ^~~~~
  ./lm/vocab.hh:213:85: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    213 | template <class Vocab> void CheckSpecials(const Config &config, const Vocab &vocab) throw(SpecialWordMissingException) {
        |                                                                                     ^~~~~
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/trie.cc -o build/temp.linux-x86_64-3.10/lm/trie.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/trie_sort.cc -o build/temp.linux-x86_64-3.10/lm/trie_sort.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  In file included from lm/trie_sort.cc:6:
  ./lm/vocab.hh:210:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    210 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException);
        |                                           ^~~~~
  ./lm/vocab.hh:211:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    211 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException);
        |                                                                   ^~~~~
  ./lm/vocab.hh:213:85: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    213 | template <class Vocab> void CheckSpecials(const Config &config, const Vocab &vocab) throw(SpecialWordMissingException) {
        |                                                                                     ^~~~~
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/value_build.cc -o build/temp.linux-x86_64-3.10/lm/value_build.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  In file included from ./lm/model.hh:13,
                   from lm/value_build.cc:3:
  ./lm/vocab.hh:210:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    210 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException);
        |                                           ^~~~~
  ./lm/vocab.hh:211:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    211 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException);
        |                                                                   ^~~~~
  ./lm/vocab.hh:213:85: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    213 | template <class Vocab> void CheckSpecials(const Config &config, const Vocab &vocab) throw(SpecialWordMissingException) {
        |                                                                                     ^~~~~
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/virtual_interface.cc -o build/temp.linux-x86_64-3.10/lm/virtual_interface.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c lm/vocab.cc -o build/temp.linux-x86_64-3.10/lm/vocab.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  In file included from lm/vocab.cc:1:
  ./lm/vocab.hh:210:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    210 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException);
        |                                           ^~~~~
  ./lm/vocab.hh:211:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    211 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException);
        |                                                                   ^~~~~
  ./lm/vocab.hh:213:85: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    213 | template <class Vocab> void CheckSpecials(const Config &config, const Vocab &vocab) throw(SpecialWordMissingException) {
        |                                                                                     ^~~~~
  lm/vocab.cc:285:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    285 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException) {
        |                                           ^~~~~
  lm/vocab.cc:297:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    297 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException) {
        |                                                                   ^~~~~
  gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -fPIC -I. -I/usr/include/python3.10 -c python/kenlm.cpp -o build/temp.linux-x86_64-3.10/python/kenlm.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB
  In file included from ./lm/model.hh:13,
                   from python/kenlm.cpp:253:
  ./lm/vocab.hh:210:43: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    210 | void MissingUnknown(const Config &config) throw(SpecialWordMissingException);
        |                                           ^~~~~
  ./lm/vocab.hh:211:67: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    211 | void MissingSentenceMarker(const Config &config, const char *str) throw(SpecialWordMissingException);
        |                                                                   ^~~~~
  ./lm/vocab.hh:213:85: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
    213 | template <class Vocab> void CheckSpecials(const Config &config, const Vocab &vocab) throw(SpecialWordMissingException) {
        |                                                                                     ^~~~~
  In file included from /usr/include/python3.10/Python.h:74,
                   from python/kenlm.cpp:16:
  python/kenlm.cpp: In function void __pyx_tp_dealloc_5kenlm_Model(PyObject*):
  /usr/include/python3.10/object.h:133:33: error: lvalue required as increment operand
    133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
        |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:4398:7: note: in expansion of macro Py_REFCNT
   4398 |     ++Py_REFCNT(o);
        |       ^~~~~~~~~
  /usr/include/python3.10/object.h:133:33: error: lvalue required as decrement operand
    133 | #define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST_CONST(ob))
        |                       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:4400:7: note: in expansion of macro Py_REFCNT
   4400 |     --Py_REFCNT(o);
        |       ^~~~~~~~~
  python/kenlm.cpp: In function PyObject* PyInit_kenlm():
  python/kenlm.cpp:4876:37: error: PyTypeObject {aka struct _typeobject} has no member named tp_print
   4876 |   __pyx_type_5kenlm_FullScoreReturn.tp_print = 0;
        |                                     ^~~~~~~~
  python/kenlm.cpp:4880:27: error: PyTypeObject {aka struct _typeobject} has no member named tp_print
   4880 |   __pyx_type_5kenlm_State.tp_print = 0;
        |                           ^~~~~~~~
  python/kenlm.cpp:4884:28: error: PyTypeObject {aka struct _typeobject} has no member named tp_print
   4884 |   __pyx_type_5kenlm_Config.tp_print = 0;
        |                            ^~~~~~~~
  python/kenlm.cpp:4888:27: error: PyTypeObject {aka struct _typeobject} has no member named tp_print
   4888 |   __pyx_type_5kenlm_Model.tp_print = 0;
        |                           ^~~~~~~~
  python/kenlm.cpp:4902:53: error: PyTypeObject {aka struct _typeobject} has no member named tp_print
   4902 |   __pyx_type_5kenlm___pyx_scope_struct__full_scores.tp_print = 0;
        |                                                     ^~~~~~~~
  In file included from /usr/include/python3.10/unicodeobject.h:1046,
                   from /usr/include/python3.10/Python.h:83,
                   from python/kenlm.cpp:16:
  python/kenlm.cpp: In function int __Pyx_ParseOptionalKeywords(PyObject*, PyObject***, PyObject*, PyObject**, Py_ssize_t, const char*):
  /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*) is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro PyUnicode_WSTR_LENGTH
    261 |       PyUnicode_WSTR_LENGTH(op) :                    \
        |       ^~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5396:22: note: in expansion of macro PyUnicode_GET_SIZE
   5396 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                      ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*) is deprecated [-Wdeprecated-declarations]
    262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
        |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5396:22: note: in expansion of macro PyUnicode_GET_SIZE
   5396 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                      ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*) is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro PyUnicode_WSTR_LENGTH
    264 |        PyUnicode_WSTR_LENGTH(op)))
        |        ^~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5396:22: note: in expansion of macro PyUnicode_GET_SIZE
   5396 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                      ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*) is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro PyUnicode_WSTR_LENGTH
    261 |       PyUnicode_WSTR_LENGTH(op) :                    \
        |       ^~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5396:52: note: in expansion of macro PyUnicode_GET_SIZE
   5396 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                    ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*) is deprecated [-Wdeprecated-declarations]
    262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
        |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5396:52: note: in expansion of macro PyUnicode_GET_SIZE
   5396 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                    ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*) is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro PyUnicode_WSTR_LENGTH
    264 |        PyUnicode_WSTR_LENGTH(op)))
        |        ^~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5396:52: note: in expansion of macro PyUnicode_GET_SIZE
   5396 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                    ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*) is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro PyUnicode_WSTR_LENGTH
    261 |       PyUnicode_WSTR_LENGTH(op) :                    \
        |       ^~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5412:26: note: in expansion of macro PyUnicode_GET_SIZE
   5412 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                          ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*) is deprecated [-Wdeprecated-declarations]
    262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
        |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5412:26: note: in expansion of macro PyUnicode_GET_SIZE
   5412 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                          ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*) is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro PyUnicode_WSTR_LENGTH
    264 |        PyUnicode_WSTR_LENGTH(op)))
        |        ^~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5412:26: note: in expansion of macro PyUnicode_GET_SIZE
   5412 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                          ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*) is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:261:7: note: in expansion of macro PyUnicode_WSTR_LENGTH
    261 |       PyUnicode_WSTR_LENGTH(op) :                    \
        |       ^~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5412:59: note: in expansion of macro PyUnicode_GET_SIZE
   5412 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                           ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:262:33: warning: Py_UNICODE* PyUnicode_AsUnicode(PyObject*) is deprecated [-Wdeprecated-declarations]
    262 |       ((void)PyUnicode_AsUnicode(_PyObject_CAST(op)),\
        |              ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5412:59: note: in expansion of macro PyUnicode_GET_SIZE
   5412 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                           ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
    580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
        |                                             ^~~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:451:61: warning: Py_ssize_t _PyUnicode_get_wstr_length(PyObject*) is deprecated [-Wdeprecated-declarations]
    451 | #define PyUnicode_WSTR_LENGTH(op) _PyUnicode_get_wstr_length((PyObject*)op)
        |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:264:8: note: in expansion of macro PyUnicode_WSTR_LENGTH
    264 |        PyUnicode_WSTR_LENGTH(op)))
        |        ^~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp:5412:59: note: in expansion of macro PyUnicode_GET_SIZE
   5412 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
        |                                                           ^~~~~~~~~~~~~~~~~~
  /usr/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
    446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
        |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
  python/kenlm.cpp: In function void __Pyx_ExceptionSave(PyObject**, PyObject**, PyObject**):
  python/kenlm.cpp:5583:21: error: PyThreadState {aka struct _ts} has no member named exc_type; did you mean curexc_type?
   5583 |     *type = tstate->exc_type;
        |                     ^~~~~~~~
        |                     curexc_type
  python/kenlm.cpp:5584:22: error: PyThreadState {aka struct _ts} has no member named exc_value; did you mean curexc_value?
   5584 |     *value = tstate->exc_value;
        |                      ^~~~~~~~~
        |                      curexc_value
  python/kenlm.cpp:5585:19: error: PyThreadState {aka struct _ts} has no member named exc_traceback; did you mean curexc_traceback?
   5585 |     *tb = tstate->exc_traceback;
        |                   ^~~~~~~~~~~~~
        |                   curexc_traceback
  python/kenlm.cpp: In function void __Pyx_ExceptionReset(PyObject*, PyObject*, PyObject*):
  python/kenlm.cpp:5597:24: error: PyThreadState {aka struct _ts} has no member named exc_type; did you mean curexc_type?
   5597 |     tmp_type = tstate->exc_type;
        |                        ^~~~~~~~
        |                        curexc_type
  python/kenlm.cpp:5598:25: error: PyThreadState {aka struct _ts} has no member named exc_value; did you mean curexc_value?
   5598 |     tmp_value = tstate->exc_value;
        |                         ^~~~~~~~~
        |                         curexc_value
  python/kenlm.cpp:5599:22: error: PyThreadState {aka struct _ts} has no member named exc_traceback; did you mean curexc_traceback?
   5599 |     tmp_tb = tstate->exc_traceback;
        |                      ^~~~~~~~~~~~~
        |                      curexc_traceback
  python/kenlm.cpp:5600:13: error: PyThreadState {aka struct _ts} has no member named exc_type; did you mean curexc_type?
   5600 |     tstate->exc_type = type;
        |             ^~~~~~~~
        |             curexc_type
  python/kenlm.cpp:5601:13: error: PyThreadState {aka struct _ts} has no member named exc_value; did you mean curexc_value?
   5601 |     tstate->exc_value = value;
        |             ^~~~~~~~~
        |             curexc_value
  python/kenlm.cpp:5602:13: error: PyThreadState {aka struct _ts} has no member named exc_traceback; did you mean curexc_traceback?
   5602 |     tstate->exc_traceback = tb;
        |             ^~~~~~~~~~~~~
        |             curexc_traceback
  python/kenlm.cpp: In function int __Pyx_GetException(PyObject**, PyObject**, PyObject**):
  python/kenlm.cpp:5645:24: error: PyThreadState {aka struct _ts} has no member named exc_type; did you mean curexc_type?
   5645 |     tmp_type = tstate->exc_type;
        |                        ^~~~~~~~
        |                        curexc_type
  python/kenlm.cpp:5646:25: error: PyThreadState {aka struct _ts} has no member named exc_value; did you mean curexc_value?
   5646 |     tmp_value = tstate->exc_value;
        |                         ^~~~~~~~~
        |                         curexc_value
  python/kenlm.cpp:5647:22: error: PyThreadState {aka struct _ts} has no member named exc_traceback; did you mean curexc_traceback?
   5647 |     tmp_tb = tstate->exc_traceback;
        |                      ^~~~~~~~~~~~~
        |                      curexc_traceback
  python/kenlm.cpp:5648:13: error: PyThreadState {aka struct _ts} has no member named exc_type; did you mean curexc_type?
   5648 |     tstate->exc_type = local_type;
        |             ^~~~~~~~
        |             curexc_type
  python/kenlm.cpp:5649:13: error: PyThreadState {aka struct _ts} has no member named exc_value; did you mean curexc_value?
   5649 |     tstate->exc_value = local_value;
        |             ^~~~~~~~~
        |             curexc_value
  python/kenlm.cpp:5650:13: error: PyThreadState {aka struct _ts} has no member named exc_traceback; did you mean curexc_traceback?
   5650 |     tstate->exc_traceback = local_tb;
        |             ^~~~~~~~~~~~~
        |             curexc_traceback
  python/kenlm.cpp: In function void __Pyx_ExceptionSwap(PyObject**, PyObject**, PyObject**):
  python/kenlm.cpp:6376:24: error: PyThreadState {aka struct _ts} has no member named exc_type; did you mean curexc_type?
   6376 |     tmp_type = tstate->exc_type;
        |                        ^~~~~~~~
        |                        curexc_type
  python/kenlm.cpp:6377:25: error: PyThreadState {aka struct _ts} has no member named exc_value; did you mean curexc_value?
   6377 |     tmp_value = tstate->exc_value;
        |                         ^~~~~~~~~
        |                         curexc_value
  python/kenlm.cpp:6378:22: error: PyThreadState {aka struct _ts} has no member named exc_traceback; did you mean curexc_traceback?
   6378 |     tmp_tb = tstate->exc_traceback;
        |                      ^~~~~~~~~~~~~
        |                      curexc_traceback
  python/kenlm.cpp:6379:13: error: PyThreadState {aka struct _ts} has no member named exc_type; did you mean curexc_type?
   6379 |     tstate->exc_type = *type;
        |             ^~~~~~~~
        |             curexc_type
  python/kenlm.cpp:6380:13: error: PyThreadState {aka struct _ts} has no member named exc_value; did you mean curexc_value?
   6380 |     tstate->exc_value = *value;
        |             ^~~~~~~~~
        |             curexc_value
  python/kenlm.cpp:6381:13: error: PyThreadState {aka struct _ts} has no member named exc_traceback; did you mean curexc_traceback?
   6381 |     tstate->exc_traceback = *tb;
        |             ^~~~~~~~~~~~~
        |             curexc_traceback
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for kenlm
[?25h  Running setup.py clean for kenlm
Failed to build kenlm
Installing collected packages: kenlm
    Running setup.py install for kenlm ... [?25l-
import kenlm
model = kenlm.Model("")