Class: GrammarCop::Linkage

Inherits:
Object
  • Object
show all
Extended by:
LinkGrammar
Defined in:
lib/grammar_cop/linkage.rb

Class Method Summary collapse

Methods included from LinkGrammar

create_dictionary, create_linkage, create_parse_options, create_sentence, delete_dictionary, delete_linkage, delete_parse_options, delete_sentence, dictionary_path_set, disjunct_cost_get, disjunct_cost_set, islands_ok_get, islands_ok_set, linkage_count_num_links, linkage_count_num_words, linkage_count_sublinkages, linkage_limit_get, linkage_limit_set, max_null_count_get, max_null_count_set, min_null_count_get, min_null_count_set, options_null_block_get, options_null_block_set, parse_sentence, print_linkage_diagram, short_length_get, short_length_set

Class Method Details

.create(k, sentence, opts) ⇒ Object



6
7
8
# File 'lib/grammar_cop/linkage.rb', line 6

def self.create(k, sentence, opts)
  create_linkage(k, sentence, opts)
end

.create_diagram(linkage) ⇒ Object



14
15
16
# File 'lib/grammar_cop/linkage.rb', line 14

def self.create_diagram(linkage)
  print_linkage_diagram(linkage)
end

.destroy(linkage) ⇒ Object



10
11
12
# File 'lib/grammar_cop/linkage.rb', line 10

def self.destroy(linkage)
  delete_linkage(linkage)
end


26
27
28
# File 'lib/grammar_cop/linkage.rb', line 26

def self.num_links_count(linkage)
  linkage_count_num_links(linkage)
end

.num_words_count(linkage) ⇒ Object



22
23
24
# File 'lib/grammar_cop/linkage.rb', line 22

def self.num_words_count(linkage)
  linkage_count_num_words(linkage)
end

.sublinkages_count(linkage) ⇒ Object



18
19
20
# File 'lib/grammar_cop/linkage.rb', line 18

def self.sublinkages_count(linkage)
  linkage_count_sublinkages(linkage)
end