Skip to content

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

Notifications You must be signed in to change notification settings

icsi-berkeley/ecg_framenet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ...

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages