Week 7
Finished
PS. For instructions of using this code, please refer to README.md
Frame Hierarchy Analyzer Function [Link]
- Developed an algorithm to fetch the hierarchy of frames in FrameNet dataset.
- Supported relations: 4/6 relations in FrameNet.
Inheritance: [Inherits from,Is Inherited by],Perspective: [Perspective on,Is Perspectivized in],Usage: [Uses,Is Used by],Subframe: [Subframe of,Has Subframe(s)],
- Exceptions are:
Precedes,Is Preceded by: contain loops (e.g. Waking_up, Process_continue)Is Inchoative of,Is Causative of: do not correspond one-to-one (e.g. Awareness & Coming_to_believe)
- Return value:
- A
rootnode of the linked list (tree structure)
- A
- Functions:
find(): Finds a node by name within the subtree rooted at the current node.count_nodes(): Counts the total number of nodes in the subtree including this node.children(): Get the list of immediate child nodes of this node.print(): Returns the visualized string representation of the node hierarchy.
-
Well documented and stored in my gallina home
/mnt/rds/redhen/gallina/home/zxc808
Frame Hierarchy Examiner Function [Link]
- Correctness check function for hierarchy algorithm
- Ensuring correct parent and child relations for every node.
To-do List For Next Week
- Continue working on frame categorization and frame blending word selection
- Experiment on HPC with Llama2