It's not a neat library or anything, but I think we did something similar to what you're describing for the Coptic Dictionary Online:
https://coptic-dictionary.org/network.cgi?word=%CF%AD%E2%B2%93%E2%B2%9B%E2%B2%89&pos=V&tla=CF17565
It's a little widget that shows common sequence transitions with a certain node word, based on dependency subtrees to account for cases where an optional modifier may or may not appear, and weights indicating the frequencies.
Not sure if this helps but I thought it might be worth mentioning,
Amir
On Fri, Jan 28, 2022, 20:17 Albretch Mueller <lbrtchx at gmail.com> wrote:
> > Wattenberg, M., & Viégas, F. B. (2008). The Word Tree, an interactive
> visual
> > concordance. IEEE Transactions on Visualization & Computer Graphics,
> 14(6),
> > 1221-1228. https://ieeexplore.ieee.org/document/4658133
>
> hint.fm/papers/wordtree_final2.pdf
>
> lbrtchx
>
> _______________________________________________
> UNSUBSCRIBE from this page: http://mailman.uib.no/options/corpora
> Corpora mailing list
> Corpora at uib.no
> https://mailman.uib.no/listinfo/corpora
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/html
Size: 2270 bytes
Desc: not available
URL: <https://mailman.uib.no/public/corpora/attachments/20220129/281a8f0c/attachment.txt>