semantic graph

Submitted by alondra831002 on Wed, 09/09/2020 - 07:21
Forums

How can I obtain a semantic graph using Freeling with ruby?

alondra831002

Wed, 09/09/2020 - 07:25

I use this code line in ruby and I obtain a plain text with the POS information of my input text but I want to obtain a semantic graph in an XML format does somebody know how to do it?

system("C:/freeling_win22/freeling/bin/analyzer.exe -f C:/freeling_win22/freeling/data/config/es.cfg <"+file+">"+ file2)

You need to call "analyzer.exe" with the appropriate options. (though it would be better to call "analyze.bat" which takes care of solving paths )

User manual on "analyzer.exe" and "analyze.bat":  https://freeling-user-manual.readthedocs.io/en/v4.2/analyzer/

User manual on options you can use (you need to look for "output level" and "output format"): https://freeling-user-manual.readthedocs.io/en/v4.2/analyzer/#valid-options