Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphical display of HfstTransducer in current version of hfst? #10

Open
MatsRooth opened this issue Dec 20, 2024 · 0 comments
Open

Graphical display of HfstTransducer in current version of hfst? #10

MatsRooth opened this issue Dec 20, 2024 · 0 comments

Comments

@MatsRooth
Copy link

Does graphical display of an HfstTransducer in a jupyter notebook work somehow in the current version of hfst? It does work as follows with hfst_dev and Python 3.7.

import hfst_dev as hfst
import graphviz
hfst.version
'3.15.0.10'
from platform import python_version
python_version()
'3.7.16'

r1 = hfst.regex('a:b')
type(r1)
libhfst_dev.HfstTransducer
r1.view()
A transducer is displayed graphically inline in the notebook with graphviz.

In a current hfst HfstTransducer.view method seems not to be defined, and I did not find an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant