String2string: A Modern Python Library for String-to-String Algorithms https://arxiv.org/abs/2304.14395 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
1316 читали · 5 лет назад
Python. Строковые методы (String Methods). (41)
Для работы со строками(str) в Python есть большой выбор строковых методов, по-русски, наверное, правильнее будет методы строк (синим шрифтом выделены ссылки на подробное описание методов): capitalize() ; casefold() ; center() ; count() ; encode() ; endswith() ; expandtabs() ; find() ; format() 1 часть ; format() 2 часть ; format_map() ; index() ; isalnum() ; isalpha() ; isascii() ; isdecimal() ; isdigit() ; isidentifier() ; islower() ; isnumeric() ; isprintable() ; isspace() ; istitle()...