Martin Berglund

dblp:59/9687 · DBLP profile ↗
← Back
18ranked-venue papers
15as first author
9since 2021 · last 2026
0000-0002-3692-6994ORCID · verified

Domains — the database's venue-derived domains; a paper can count in several

Theory of computation · 18 · 15 first-author · 9 since 2021
YearPublicationVenuePosition
2026 Constructing a BPE tokenization DFA
abstract
Many natural language processing systems operate over tokenizations of text to address the open-vocabulary problem. In this paper, we give and analyze an algorithm for the efficient construction of deterministic finite automata (DFA) designed to operate directly on tokenizations produced by the popular byte pair encoding (BPE) technique. This makes it possible to apply many existing techniques and algorithms to the tokenized case, such as pattern matching, equivalence checking of tokenization dictionaries, and composing tokenized languages in various ways. The construction preserves some key properties of the automaton, and we use this to establish asymptotic bounds on the state complexity of the automata that result. Finally, we demonstrate how to construct an input-deterministic (subsequential) string-to-string transducer which precisely describes the relationship between strings and their correct tokenizations.
Martin Berglund, Willeke Martens, Brink van der Merwe
Theor. Comput. Sci.1
2025 Constructing Compact BPE Token DFAs
Martin Berglund, Willeke Martens, Brink van der Merwe
CIAA1
2024 Constructing a BPE Tokenization DFA
Martin Berglund, Willeke Martens, Brink van der Merwe
CIAA1
2023 Parsing Unranked Tree Languages, Folded Once
Martin Berglund, Henrik Björklund, Johanna Björklund
FCT1
2023 Transduction from trees to graphs through folding
abstract
We introduce a fold operation that realises a tree-to-graph transduction by merging selected nodes in the input tree to form a possibly cyclic output graph. The work is motivated by the increasing use of graph-based representations in semantic parsing. We show that a suitable class of graphs languages can be generated by applying the fold operation to regular unranked tree languages. We investigate two versions of the fold operation, one that preserves a depth-first ordering between the edges, and one that does not. Finally, we demonstrate that the time complexity for the associated non-uniform membership problem is solvable in polynomial time for the order-preserving version, and NP-complete for the order-cancelling one.
Martin Berglund, Henrik Björklund, Johanna Björklund, Adrien Boiret
Inf. Comput.1
2023 Re-examining regular expressions with backreferences
Martin Berglund, Brink van der Merwe
Theor. Comput. Sci.1
2022 Ordered Context-Free Grammars
Brink van der Merwe, Martin Berglund
CIAA2
2021 Memoized Regular Expressions
Brink van der Merwe, Jacobie Mouton, Steyn van Litsenborgh, Martin Berglund
CIAA4
2021 Formalising and implementing Boost POSIX regular expression matching
Martin Berglund, Willem Bester, Brink van der Merwe
Theor. Comput. Sci.1
2018 Formalising Boost POSIX Regular Expression Matching
Martin Berglund, Willem Bester, Brink van der Merwe
ICTAC1
2018 An Automata-Based View on Configurability and Uncertainty
Martin Berglund, Ina Schaefer
ICTAC1
2017 On the Semantics of Atomic Subgroups in Practical Regular Expressions
Martin Berglund, Brink van der Merwe, Bruce W. Watson, Nicolaas Weideman
CIAA1
2017 On the semantics of regular expression parsing in the wild
Martin Berglund, Brink van der Merwe
Theor. Comput. Sci.1
2016 Analyzing Matching Time Behavior of Backtracking Regular Expression Matchers by Using Ambiguity of NFA
Nicolaas Weideman, Brink van der Merwe, Martin Berglund, Bruce W. Watson
CIAA3
2015 On the Semantics of Regular Expression Parsing in the Wild
Martin Berglund, Brink van der Merwe
CIAA1
2013 Cuts in Regular Expressions
Martin Berglund, Henrik Björklund, Frank Drewes, Brink van der Merwe, Bruce W. Watson
Developments in Language Theory1
2013 Shuffled languages - Representation and recognition
Martin Berglund, Henrik Björklund, Johanna Björklund
Theor. Comput. Sci.1
2011 Recognizing Shuffled Languages
Martin Berglund, Henrik Björklund, Johanna Björklund
LATA1