This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
import sys | |
import socket | |
import select | |
from urlparse import urlparse, parse_qs | |
import word2vec | |
argvs = sys.argv | |
port = 8000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <wn.h> | |
#define MAX_STRINGS 65535 | |
#define MAX_BUF_NUM 4096 | |
#define MAX_BUF_SIZE 255 | |
int main(int argc, char *argv[]) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$input_file = $argv[1]; | |
if($argc >= 3){ | |
$output_file = $argv[2]; | |
} | |
else{ | |
$output_file = ""; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$input_file = $argv[1]; | |
if($argc >= 3){ | |
$output_file = $argv[2]; | |
} | |
else{ | |
$output_file = ""; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = "127.0.0.1"; | |
$db_name = $argv[1]; | |
$table = "category"; | |
$username = "mysql"; | |
$password = ""; | |
$output_file = $argv[2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = "127.0.0.1"; | |
$db_name = $argv[1]; | |
$table = "text"; | |
$index = "title,text"; | |
$username = "mysql"; | |
$password = ""; | |
$category_file = $argv[2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = "127.0.0.1"; | |
$db_name = $argv[1]; | |
$table = "category"; | |
$username = "mysql"; | |
$password = ""; | |
$output_file = $argv[2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "groonga" | |
database_path = ARGV[0] | |
ft_index = ARGV[1] | |
output_file = ARGV[2] | |
Groonga::Database.open(database_path) | |
index_column_name = "#{ft_index}.index" | |
index = Groonga[index_column_name] | |
index.table.open_cursor do |table_cursor| | |
index.open_cursor(table_cursor) do |cursor| | |
current_term_id = nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = "127.0.0.1"; | |
$db_name = $argv[1]; | |
$table = "text"; | |
$index = "title,text"; | |
$username = "mysql"; | |
$password = ""; | |
$category_file = $argv[2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = "localhost"; | |
$db_name = $argv[1]; | |
$table = "text"; | |
$username = "mysql"; | |
$password = ""; | |
$article = $argv[2]; | |
$output_file = $argv[3]; |