cherepanovic / foma

Automatically exported from code.google.com/p/foma
0 stars 0 forks source link

How to represent FST network visually #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 alami...@gmail.com on 16 Jan 2013 at 11:23

GoogleCodeExporter commented 8 years ago
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 mans.hul...@gmail.com on 17 Jan 2013 at 8:37

GoogleCodeExporter commented 8 years ago
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 alami...@gmail.com on 19 Jan 2013 at 11:35

GoogleCodeExporter commented 8 years ago
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 alami...@gmail.com on 19 Jan 2013 at 12:47