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

How to represent FST network visually #44

Open
GoogleCodeExporter opened this issue Mar 3, 2016 · 3 comments
Open

How to represent FST network visually #44

GoogleCodeExporter opened this issue Mar 3, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create parallel Regular expression for two replacement rules
2. like: regex p -> "pl" ,, "p2" -> "p4" ;  

my question is there any tool or library to visualize the compiled regular 
expression as  FST network plotted visually.

Thanks

Original issue reported on code.google.com by [email protected] on 16 Jan 2013 at 11:23

@GoogleCodeExporter
Copy link
Author

If you're running Linux or OSX, the "view" command should display the compiled 
FST visually. OSX may require installation of GraphViz 
(http://www.graphviz.org/Download_macos.php). Windows is not supported for 
visualization.

Original comment by [email protected] on 17 Jan 2013 at 8:37

@GoogleCodeExporter
Copy link
Author

I already installed Graphviz on my Linux RHEL 5.x and after that when i created 
simple foma RE lik regex abc;
then type "view" but nothing happen only the prompt move to new line.
so how can i access the visual fst? is it saved on hard disk as .png file or it 
should display instantly after entr view command?

Original comment by [email protected] on 19 Jan 2013 at 11:35

@GoogleCodeExporter
Copy link
Author

Finally i found the .png stored under /tmp/ folder also the dot script file
another method i made also:
from foma type: foma[]: print dot > filename.txt
this command will genrate the dot script for drawing the fst

then exit from foma
and type following command from linux terminal:
# dot -Tpng -o outgraph.png filename.txt

thanks

Original comment by [email protected] on 19 Jan 2013 at 12:47

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

No branches or pull requests

1 participant