wt_lists = nltk_word_tokenize(info);
len = nltk_get_size_from_list(wt_lists);
char *tokens[BUF_LEN_128] = {NULL,};
- for(int i = 0 ;i < len ;i++)
+ for(int i = 0; i < len; i++)
{
tokens[i] = (char*)malloc(BUF_LEN_128*sizeof(char));
if(tokens[i]!=NULL)
}
bundle_add_str(reply, "command", "word_tokenize");
bundle_add_str_array(reply, "return_token", (const char **)tokens, len);
- for(int j = 0 ;j < len ;j++)
+ for(int j = 0; j < len; j++)
{
free(tokens[j]);
}
len = nltk_get_size_from_list(pt_result);
char *tag[BUF_LEN_128] = {NULL,};
char *token[BUF_LEN_128] = {NULL,};
- for(int i = 0 ;i < len ;i++)
+ for(int i = 0; i < len; i++)
{
token[i] = (char*)malloc(BUF_LEN_128*sizeof(char));
tag[i] = (char*)malloc(BUF_LEN_128*sizeof(char));
bundle_add_str(reply, "command", "pos_tag");
bundle_add_str_array(reply, "return_tag", (const char **)tag, len);
bundle_add_str_array(reply, "return_token", (const char **)token, len);
- for(int j = 0 ;j < len ;j++)
+ for(int j = 0; j < len; j++)
{
free(tag[j]);
free(token[j]);
len = nltk_get_size_from_list(ne_result);
char *s_tag[BUF_LEN_128] = {NULL,};
char *s_token[BUF_LEN_128] = {NULL,};
- for(int i = 0 ;i < len ;i++)
+ for(int i = 0; i < len; i++)
{
s_token[i] = (char*)malloc(BUF_LEN_128*sizeof(char));
s_tag[i] = (char*)malloc(BUF_LEN_128*sizeof(char));
bundle_add_str(reply, "command", "ne_chunk");
bundle_add_str_array(reply, "return_tag", (const char **)s_tag, len);
bundle_add_str_array(reply, "return_token", (const char **)s_token, len);
- for(int j = 0 ;j < len ;j++)
+ for(int j = 0; j < len; j++)
{
free(s_tag[j]);
free(s_token[j]);