Class: GrammarCop::ParseOptions

Inherits:
Object
  • Object
show all
Extended by:
LinkGrammar
Defined in:
lib/grammar_cop/parse_options.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, linkage_count_num_links, linkage_count_num_words, linkage_count_sublinkages, linkage_limit_get, linkage_limit_set, parse_sentence, print_linkage_diagram, short_length_get, short_length_set

Class Method Details

.createObject



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

def self.create
  create_parse_options()
end

.destroy(opts) ⇒ Object



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

def self.destroy(opts)
  delete_parse_options(opts)
end

.get_linkage_limit(opts) ⇒ Object



19
20
21
# File 'lib/grammar_cop/parse_options.rb', line 19

def self.get_linkage_limit(opts)
  linkage_limit_get(opts)
end

.get_short_length(opts) ⇒ Object



27
28
29
# File 'lib/grammar_cop/parse_options.rb', line 27

def self.get_short_length(opts)
  short_length_get(opts)
end

.set_linkage_limit(opts, limit) ⇒ Object



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

def self.set_linkage_limit(opts, limit)
  #some reason functions start w/ set/get result in SystemStackError
  linkage_limit_set(opts, limit) 
end

.set_short_length(opts, length) ⇒ Object



23
24
25
# File 'lib/grammar_cop/parse_options.rb', line 23

def self.set_short_length(opts, length)
  short_length_set(opts, length)
end