udapi.block.zellig_harris.baseline module

class udapi.block.zellig_harris.baseline.Baseline(args=None)[source]

Bases: Block

A block for extraction context configurations for training verb representations using word2vecf.

get_word(node)[source]

Format the correct string representation of the given node according to the block settings.

Parameters:

node – A input node.

Returns:

A node’s string representation.

print_triple(target_node, context_node, relation_name)[source]

Print to the standard output the context triple according to the block settings.

Parameters:
  • target_node – A target word.

  • context_node – A context word.

  • relation_name – A relation name.

process_node(node)[source]

Extract context configuration for verbs according to (Vulic et al., 2016).

Parameters:

node – A node to be process.