rust-bert/examples
Romain Leroux 4d8a298586
Add sbert implementation for inference (#250)
* Add sbert implementation for inference

* Fix clippy warnings

* Refactor sentence embeddings into a dedicated pipeline

* Add output_attentions and output_hidden_states to T5Config

* Add sbert implementation for inference

* Fix clippy warnings

* Refactor sentence embeddings into a dedicated pipeline

* Add output_attentions and output_hidden_states to T5Config

* Improve sentence_embeddings implementation

* Dedicated tokenizer config for strip_accents and add_prefix_space

* Rename forward to encode_as_tensor

* Remove _conf from Dense layer

* Add sentence embeddings docs

* Addition of remote resources and tests update

* Merge feature branch and fix doctests

* Add SentenceEmbeddingsBuilder<Remote> and improve remote resources

* Use tch::no_grad in sentence embeddings

* Updated changelog, registration of sentence embeddings integration tests

Co-authored-by: Guillaume Becquin <guillaume.becquin@gmail.com>
2022-06-21 20:24:09 +01:00
..
async-sentiment.rs add async example, documentation and fix clippy (#217) 2022-01-30 11:51:58 +00:00
conversation.rs Fixed greedy generation method 2020-10-13 18:52:09 +02:00
generation_gpt2.rs Initial implementation of scores output 2021-06-15 19:09:20 +02:00
generation_gpt_neo.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
generation_reformer.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
generation_xlnet.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
masked_language_model_bert.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
named_entities_recognition.rs Merge remote-tracking branch 'origin/master' into entity_consolidation 2021-11-20 11:03:05 +01:00
natural_language_inference_deberta.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
part_of_speech_tagging.rs Updated offsets fixing overlapping spans 2021-08-18 09:07:23 +02:00
question_answering_bert.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
question_answering_longformer.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
question_answering_squad.rs Updated documentation, cleaned examples, added integration tests 2021-06-06 13:01:33 +02:00
question_answering.rs Reverted DistilBertForQuestionAnswering example 2021-02-14 10:53:00 +01:00
sentence_embeddings_local.rs Add sbert implementation for inference (#250) 2022-06-21 20:24:09 +01:00
sentence_embeddings.rs Add sbert implementation for inference (#250) 2022-06-21 20:24:09 +01:00
sentiment_analysis_fnet.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
sentiment_analysis_sst2.rs Fixed Clippy warnings (#204) 2021-12-09 09:33:27 +01:00
sentiment_analysis.rs Updated documentation, cleaned examples, added integration tests 2021-06-06 13:01:33 +02:00
sequence_classification_multilabel.rs Updated T5 (clippy) 2020-09-13 12:25:22 +02:00
sequence_classification.rs replace failure with anyhow (#69) 2020-08-12 13:39:04 +02:00
summarization_bart.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
summarization_pegasus.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
summarization_prophetnet.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
summarization_t5.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
token_classification.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
translation_builder.rs Updated doctests 2021-07-28 18:10:20 +02:00
translation_m2m100.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
translation_marian.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
translation_mbart.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
translation_t5.rs Refactor: Feature gate remote resource (#223) 2022-02-25 21:24:03 +00:00
zero_shot_classification.rs Updated examples and tests for zero shot classification 2020-09-06 10:39:18 +02:00