Method: Mykytea::KyteaSentence#words

Defined in:
ext/mykytea_wrap.cxx

#words(*args) ⇒ Object



17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
# File 'ext/mykytea_wrap.cxx', line 17921

SWIGINTERN VALUE
_wrap_KyteaSentence_words_get(int argc, VALUE *argv, VALUE self) {
  kytea::KyteaSentence *arg1 = (kytea::KyteaSentence *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  kytea::KyteaSentence::Words *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_kytea__KyteaSentence, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "kytea::KyteaSentence *","words", 1, self )); 
  }
  arg1 = reinterpret_cast< kytea::KyteaSentence * >(argp1);
  result = (kytea::KyteaSentence::Words *)& ((arg1)->words);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_kytea__KyteaWord_std__allocatorT_kytea__KyteaWord_t_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}