rust-bert 0.7.6

Ready-to-use NLP pipelines and transformer-based models (BERT, DistilBERT, GPT2,...)
Documentation
Build #254856 2020-05-27T17:01:14.168624+00:00
# rustc version
rustc 1.45.0-nightly (5239f5c57 2020-05-26)
# docs.rs version
docsrs 0.6.0 (44f6f29 2020-05-26)

# build log
[INFO] running `"docker" "create" "-v" "/home/cratesfyi/workspace/builds/rust-bert-0.7.6/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/rust-bert-0.7.6/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1001" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=-Z unstable-options --resource-suffix -20200526-1.45.0-nightly-5239f5c57 --static-root-path / --cap-lints warn --extern-html-root-url ordered_float=https://docs.rs/ordered-float/1.0.2 --extern-html-root-url dirs=https://docs.rs/dirs/2.0.2 --extern-html-root-url tch=https://docs.rs/tch/0.1.7 --extern-html-root-url rust_tokenizers=https://docs.rs/rust_tokenizers/3.1.2 --extern-html-root-url reqwest=https://docs.rs/reqwest/0.10.4 --extern-html-root-url serde_json=https://docs.rs/serde_json/1.0.51 --extern-html-root-url serde=https://docs.rs/serde/1.0.106 --extern-html-root-url tokio=https://docs.rs/tokio/0.2.21 --extern-html-root-url failure=https://docs.rs/failure/0.1.7 --extern-html-root-url lazy_static=https://docs.rs/lazy_static/1.4.0 --extern-html-root-url itertools=https://docs.rs/itertools/0.9.0 --extern-html-root-url csv=https://docs.rs/csv/1.1.3" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "2" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "doc" "--lib" "--no-deps" "-j2" "--features" "doc-only"`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 92985d46fcd69b5254a06c54657a6646f1d1c20897b9658c5084b9cda91438b2
[INFO] running `"docker" "start" "-a" "92985d46fcd69b5254a06c54657a6646f1d1c20897b9658c5084b9cda91438b2"`
[INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted
[INFO] [stderr]    Compiling autocfg v1.0.0
[INFO] [stderr]    Compiling libc v0.2.69
[INFO] [stderr]    Compiling cc v1.0.52
[INFO] [stderr]    Compiling proc-macro2 v1.0.10
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]    Compiling unicode-xid v0.2.0
[INFO] [stderr]    Compiling syn v1.0.18
[INFO] [stderr]    Compiling pkg-config v0.3.17
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]    Compiling memchr v2.3.3
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]    Compiling crc32fast v1.2.0
[INFO] [stderr]     Checking rand_core v0.4.2
[INFO] [stderr]     Checking itoa v0.4.5
[INFO] [stderr]    Compiling autocfg v0.1.7
[INFO] [stderr]     Checking futures-core v0.3.5
[INFO] [stderr]     Checking bytes v0.5.4
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]     Checking slab v0.4.2
[INFO] [stderr]     Checking arc-swap v0.4.6
[INFO] [stderr]    Compiling failure_derive v0.1.7
[INFO] [stderr]    Compiling serde v1.0.106
[INFO] [stderr]    Compiling version_check v0.9.2
[INFO] [stderr]    Compiling adler32 v1.0.4
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling maybe-uninit v2.0.0
[INFO] [stderr]     Checking smallvec v1.4.0
[INFO] [stderr]     Checking pin-project-lite v0.1.5
[INFO] [stderr]    Compiling rustc-demangle v0.1.16
[INFO] [stderr]     Checking foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]    Compiling curl v0.4.28
[INFO] [stderr]    Compiling openssl v0.10.29
[INFO] [stderr]     Checking matches v0.1.8
[INFO] [stderr]    Compiling podio v0.1.6
[INFO] [stderr]    Compiling httparse v1.3.4
[INFO] [stderr]     Checking futures-sink v0.3.5
[INFO] [stderr]    Compiling openssl-probe v0.1.2
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]    Compiling native-tls v0.2.4
[INFO] [stderr]    Compiling ryu v1.0.4
[INFO] [stderr]     Checking futures-task v0.3.5
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]    Compiling rayon-core v1.7.0
[INFO] [stderr]     Checking try-lock v0.2.2
[INFO] [stderr]     Checking either v1.5.3
[INFO] [stderr]    Compiling ndarray v0.13.1
[INFO] [stderr]     Checking rawpointer v0.2.1
[INFO] [stderr]    Compiling protobuf v2.14.0
[INFO] [stderr]     Checking tower-service v0.3.0
[INFO] [stderr]    Compiling encoding_rs v0.8.23
[INFO] [stderr]     Checking percent-encoding v2.1.0
[INFO] [stderr]    Compiling rust_tokenizers v3.1.2
[INFO] [stderr]     Checking ahash v0.3.5
[INFO] [stderr]     Checking dtoa v0.4.5
[INFO] [stderr]     Checking mime v0.3.16
[INFO] [stderr]     Checking regex-syntax v0.6.17
[INFO] [stderr]     Checking base64 v0.11.0
[INFO] [stderr]    Compiling crossbeam-utils v0.7.2
[INFO] [stderr]    Compiling memoffset v0.5.4
[INFO] [stderr]    Compiling num-traits v0.2.11
[INFO] [stderr]    Compiling crossbeam-epoch v0.8.2
[INFO] [stderr]    Compiling indexmap v1.3.2
[INFO] [stderr]    Compiling num-integer v0.1.42
[INFO] [stderr]    Compiling num-complex v0.2.4
[INFO] [stderr]    Compiling hashbrown v0.7.2
[INFO] [stderr]    Compiling cmake v0.1.42
[INFO] [stderr]    Compiling bzip2-sys v0.1.8+1.0.8
[INFO] [stderr]    Compiling backtrace-sys v0.1.36
[INFO] [stderr]     Checking thread_local v1.0.1
[INFO] [stderr]    Compiling openssl-sys v0.9.55
[INFO] [stderr]    Compiling libz-sys v1.0.25
[INFO] [stderr]    Compiling curl-sys v0.4.30+curl-7.69.1
[INFO] [stderr]     Checking rand_core v0.3.1
[INFO] [stderr]     Checking rand_jitter v0.1.4
[INFO] [stderr]     Checking futures-channel v0.3.5
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]     Checking http v0.2.1
[INFO] [stderr]    Compiling miniz_oxide v0.3.6
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]     Checking unicode-normalization v0.1.12
[INFO] [stderr]     Checking unicode-normalization-alignments v0.1.12
[INFO] [stderr]     Checking foreign-types v0.3.2
[INFO] [stderr]     Checking unicode-bidi v0.3.4
[INFO] [stderr]     Checking itertools v0.8.2
[INFO] [stderr]     Checking itertools v0.9.0
[INFO] [stderr]     Checking matrixmultiply v0.2.3
[INFO] [stderr]     Checking rand_isaac v0.1.1
[INFO] [stderr]     Checking rand_hc v0.1.0
[INFO] [stderr]     Checking rand_xorshift v0.1.1
[INFO] [stderr]     Checking http-body v0.3.1
[INFO] [stderr]     Checking idna v0.2.0
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking net2 v0.2.34
[INFO] [stderr]     Checking signal-hook-registry v1.2.0
[INFO] [stderr]     Checking time v0.1.43
[INFO] [stderr]     Checking rand_os v0.1.3
[INFO] [stderr]     Checking dirs-sys v0.3.4
[INFO] [stderr]    Compiling socket2 v0.3.12
[INFO] [stderr]    Compiling quote v1.0.3
[INFO] [stderr]     Checking aho-corasick v0.7.10
[INFO] [stderr]     Checking csv-core v0.1.10
[INFO] [stderr]     Checking want v0.3.0
[INFO] [stderr]     Checking flate2 v1.0.14
[INFO] [stderr]     Checking regex-automata v0.1.9
[INFO] [stderr]     Checking url v2.1.1
[INFO] [stderr]     Checking mio v0.6.22
[INFO] [stderr]     Checking dirs v2.0.2
[INFO] [stderr]     Checking crossbeam-queue v0.2.1
[INFO] [stderr]     Checking ordered-float v1.0.2
[INFO] [stderr]    Compiling bzip2 v0.3.3
[INFO] [stderr]    Compiling backtrace v0.3.46
[INFO] [stderr]     Checking regex v1.3.7
[INFO] [stderr]    Compiling mime_guess v2.0.3
[INFO] [stderr]     Checking mio-uds v0.6.8
[INFO] [stderr]     Checking crossbeam-deque v0.7.3
[INFO] [stderr]    Compiling zip v0.5.5
[INFO] [stderr]    Compiling synstructure v0.12.3
[INFO] [stderr]    Compiling serde_derive v1.0.106
[INFO] [stderr]    Compiling tokio-macros v0.2.5
[INFO] [stderr]    Compiling pin-project-internal v0.4.17
[INFO] [stderr]     Checking rayon v1.3.0
[INFO] [stderr]     Checking tokio v0.2.21
[INFO] [stderr]     Checking pin-project v0.4.17
[INFO] [stderr]    Compiling failure v0.1.7
[INFO] [stderr]     Checking futures-util v0.3.5
[INFO] [stderr]     Checking tokio-util v0.3.1
[INFO] [stderr]     Checking tokio-tls v0.3.1
[INFO] [stderr]    Compiling torch-sys v0.1.7
[INFO] [stderr]     Checking bstr v0.2.12
[INFO] [stderr]     Checking serde_json v1.0.51
[INFO] [stderr]     Checking serde_urlencoded v0.6.1
[INFO] [stderr]     Checking h2 v0.2.5
[INFO] [stderr]     Checking csv v1.1.3
[INFO] [stderr]     Checking tch v0.1.7
[INFO] [stderr]     Checking hyper v0.13.5
[INFO] [stderr]     Checking hyper-tls v0.4.1
[INFO] [stderr]     Checking reqwest v0.10.4
[INFO] [stderr]  Documenting rust-bert v0.7.6 (/opt/rustwide/workdir)
[INFO] [stderr] warning: `[MASK]` cannot be resolved, ignoring it.
[INFO] [stderr]   --> src/bert/bert.rs:97:78
[INFO] [stderr]    |
[INFO] [stderr] 97 | /// - `pooler`: linear layer applied to the first element of the sequence (*[MASK]* token)
[INFO] [stderr]    |                                                                              ^^^^ cannot be resolved, ignoring
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(intra_doc_link_resolution_failure)]` on by default
[INFO] [stderr]    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[MASK]` cannot be resolved, ignoring it.
[INFO] [stderr]   --> src/bert/bert.rs:97:78
[INFO] [stderr]    |
[INFO] [stderr] 97 | /// - `pooler`: linear layer applied to the first element of the sequence (*[MASK]* token)
[INFO] [stderr]    |                                                                              ^^^^ cannot be resolved, ignoring
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/bert/bert.rs:150:151
[INFO] [stderr]     |
[INFO] [stderr] 150 |     /// * `token_type_ids` - Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                       ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/bert/bert.rs:365:150
[INFO] [stderr]     |
[INFO] [stderr] 365 |     /// * `token_type_ids` -Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                      ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/bert/bert.rs:476:150
[INFO] [stderr]     |
[INFO] [stderr] 476 |     /// * `token_type_ids` -Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                      ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/bert/bert.rs:582:150
[INFO] [stderr]     |
[INFO] [stderr] 582 |     /// * `token_type_ids` -Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                      ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/bert/bert.rs:702:150
[INFO] [stderr]     |
[INFO] [stderr] 702 |     /// * `token_type_ids` -Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                      ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/bert/bert.rs:807:150
[INFO] [stderr]     |
[INFO] [stderr] 807 |     /// * `token_type_ids` -Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                      ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/electra/electra.rs:153:151
[INFO] [stderr]     |
[INFO] [stderr] 153 |     /// * `token_type_ids` - Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                       ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/electra/electra.rs:467:151
[INFO] [stderr]     |
[INFO] [stderr] 467 |     /// * `token_type_ids` - Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                       ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/electra/electra.rs:575:151
[INFO] [stderr]     |
[INFO] [stderr] 575 |     /// * `token_type_ids` - Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                       ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]    --> src/electra/electra.rs:685:151
[INFO] [stderr]     |
[INFO] [stderr] 685 |     /// * `token_type_ids` - Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]     |                                                                                                                                                       ^^^ cannot be resolved, ignoring
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]   --> src/bert/embeddings.rs:95:150
[INFO] [stderr]    |
[INFO] [stderr] 95 |     /// * `token_type_ids` -Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]    |                                                                                                                                                      ^^^ cannot be resolved, ignoring
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: `[SEP]` cannot be resolved, ignoring it.
[INFO] [stderr]   --> src/roberta/embeddings.rs:99:150
[INFO] [stderr]    |
[INFO] [stderr] 99 |     /// * `token_type_ids` -Optional segment id of shape (*batch size*, *sequence_length*). Convention is value of 0 for the first sentence (incl. *[SEP]*) and 1 for the second sentence. If None set to 0.
[INFO] [stderr]    |                                                                                                                                                      ^^^ cannot be resolved, ignoring
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: 14 warnings emitted
[INFO] [stderr] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 2m 01s
[INFO] running `"docker" "inspect" "92985d46fcd69b5254a06c54657a6646f1d1c20897b9658c5084b9cda91438b2"`
[INFO] running `"docker" "rm" "-f" "92985d46fcd69b5254a06c54657a6646f1d1c20897b9658c5084b9cda91438b2"`
[INFO] [stdout] 92985d46fcd69b5254a06c54657a6646f1d1c20897b9658c5084b9cda91438b2