Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 849 Bytes

README.md

File metadata and controls

24 lines (13 loc) · 849 Bytes

ecg_framenet

Package for reading in FrameNet data and performing operations on it, such as creating ECG grammars.

See more in the tutorial: https://github.com/icsi-berkeley/framenet/wiki/FrameNet-Querying-Tutorial

If you're using BASH and want to build a customized FrameNet object, run:

$ ./build.sh

You can then retrieve a frame object by referencing the "fn" (FrameNet) object:

frame = fn.get_frame("Abandonment")

By default, the frames contain shallow information about lexical units (name, POS, etc). To retrieve the valence patterns, you can use the "FrameNetBuilder" object and pass in the name of the frame, as well as the FrameNet object (fn):

fnb.build_lus_for_frame("Abandonment", fn)

Now, the lexicalUnits field for the Abandomnent field will contain valnece pattern information:

frame.lexicalUnits[0].valences ...