framestructure

Frames instances, its arguments and predicates.

class framestructure.Arg(begin, end, text, role, instanciated, phrase_type, annotated=True, position=None)[source]

Bases: builtins.object

An argument of a frame

Variables:
  • begin – integer, position of the argument’s first character in the sentence
  • end – integer, position of the argument’s last character in the sentence
  • text – string containing the argument’s text
  • role – string containing the argument’s role
  • instanciated – boolean that marks wether the argument is instanciated
class framestructure.FrameInstance(sentence, predicate, args, words, frame_name, sentence_id=-1, filename='', slot_type='', arg_annotated=False, relative=False)[source]

Bases: builtins.object

A frame directly extracted from the FrameNet corpus or another CoNLL file.

Variables:
  • sentence – Sentence in which the frame appears
  • predicate – Predicate object representing the frame’s predicate
  • args – Arg list containing the predicate’s arguments
get_word(word)[source]
class framestructure.Predicate(begin, end, text, lemma, position=None)[source]

Bases: builtins.object

A frame’s predicate

Variables:
  • begin – integer, position of the predicate’s first character in the sentence
  • end – integer, position of the predicate’s last character in the sentence
  • text – string containing the predicate’s text
  • lemma – string containing the predicate’s lemma
class framestructure.Word(begin, end, pos)[source]

Bases: builtins.object

A frame’s word

Variables:
  • begin – integer, position of the predicate’s first character in the sentence
  • end – integer, position of the predicate’s last character in the sentence
  • text – string containing the predicate’s text
  • pos – string containing the predicate’s part-of-speech