string2string: A Modern Python Library for String-to-String Algorithms
Not on the map. Why?
Abstract (arXiv)
We introduce string2string, an open-source library that offers a comprehensive suite of efficient algorithms for a broad range of string-to-string problems. It includes traditional algorithmic solutions as well as recent advanced neural approaches to tackle various problems in string alignment, distance measurement, lexical and semantic search, and similarity analysis -- along with several helpful visualization tools and metrics to facilitate the interpretation and analysis of these methods. Notable algorithms featured in the library include the Smith-Waterman algorithm for pairwise local alignment, the Hirschberg algorithm for global alignment, the Wagner-Fisher algorithm for edit distance, BARTScore and BERTScore for similarity analysis, the Knuth-Morris-Pratt algorithm for lexical search, and Faiss for semantic search. Besides, it wraps existing efficient and widely-used implementations of certain frameworks and metrics, such as sacreBLEU and ROUGE, whenever it is appropriate and suitable. Overall, the library aims to provide extensive coverage and increased flexibility in comparison to existing libraries for strings. It can be used for many downstream applications, tasks, and problems in natural-language processing, bioinformatics, and computational social sciences. It is implemented in Python, easily installable via pip, and accessible through a simple API. Source code, documentation, and tutorials are all available on our GitHub page: https://github.com/stanfordnlp/string2string.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 16 of its 35 references that are in the map. First posted on arXiv 27 Apr 2023.
Builds on
16 of 35 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
- 2020Stanza: A Python Natural Language Processing Toolkit for Many Human Languagescited by 723
- 2021BARTScore: Evaluating Generated Text as Text Generationcited by 722
- 2018AllenNLP: A Deep Semantic Natural Language Processing Platformcited by 347
- 2016FastText.zip: Compressing text classification modelscited by 335
- 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 251
- 2019ScispaCy: Fast and Robust Models for Biomedical Natural Language Processingcited by 244
- 2018Tensor2Tensor for Neural Machine Translationcited by 85
4 more
- 2022Follow the Wisdom of the Crowd: Effective Text Generation via Minimum Bayes Risk Decodingcited by 54
- 2020Torch-Struct: Deep Structured Prediction Librarycited by 40
- 2022The Harvard USPTO Patent Dataset: A Large-Scale, Well-Structured, and Multi-Purpose Corpus of Patent Applicationscited by 33
- 2014Edit Distance Cannot Be Computed in Strongly Subquadratic Time (unless SETH is false)cited by 18
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 3; 2026: 2.
9 papers.
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memorycited by 163
- 2023Artificial Artificial Artificial Intelligence: Crowd Workers Widely Use Large Language Models for Text Production Taskscited by 103
- 2024Stumbling Blocks: Stress Testing the Robustness of Machine-Generated Text Detectors Under Attackscited by 26
- 2024NLP Systems That Can't Tell Use from Mention Censor Counterspeech, but Teaching the Distinction Helpscited by 20
- 2024Belief in the Machine: Investigating Epistemological Blind Spots of Language Modelscited by 6
- 2025Not What the Doctor Ordered: Surveying LLM-based De-identification and Quantifying Clinical Information Losscited by 4
- 2025Unsupervised Translation of Emergent Communicationcited by 3
- 2026grapheme-kit: Grapheme-Level Metrics and Text Processing for Multilingual NLPcited by 1
- 2026string2string Studio: An Interactive, In-Browser Platform for String-to-String Algorithmscited by 0
- 2026string2string Studio: An Interactive, In-Browser Platform for String-to-String Algorithms4 Aug 2026
- 2026grapheme-kit: Grapheme-Level Metrics and Text Processing for Multilingual NLP24 Jul 2026
- 2025Not What the Doctor Ordered: Surveying LLM-based De-identification and Quantifying Clinical Information Loss17 Sep 2025
- 2025Dynamic Cheatsheet: Test-Time Learning with Adaptive Memory10 Apr 2025
- 2025Unsupervised Translation of Emergent Communication11 Feb 2025
- 2024Belief in the Machine: Investigating Epistemological Blind Spots of Language Models28 Oct 2024
- 2024NLP Systems That Can't Tell Use from Mention Censor Counterspeech, but Teaching the Distinction Helps2 Apr 2024
- 2024Stumbling Blocks: Stress Testing the Robustness of Machine-Generated Text Detectors Under Attacks18 Feb 2024
- 2023Artificial Artificial Artificial Intelligence: Crowd Workers Widely Use Large Language Models for Text Production Tasks13 Jun 2023