Пример #1
0
def cluster_from_file(file, features, delim):
	x = fo.file_to_matrix(file, delim)
	x_clus = cluster(x, features)
	# we only care about data we can cluster
	x_clus = prune_no_cluster_data(x_clus)
	return x_clus
Пример #2
0
def cluster_from_file(file, features, delim):
    x = fo.file_to_matrix(file, delim)
    x_clus = cluster(x, features)
    # we only care about data we can cluster
    x_clus = prune_no_cluster_data(x_clus)
    return x_clus
Пример #3
0
def analyze_file(file, delim, text_col, include_zero_polarity):
	x = fo.file_to_matrix(file, delim)
	x_sentiment = analyze(x, text_col, include_zero_polarity)
	return x_sentiment
Пример #4
0
def geojason_from_file(file, delim):
	x = fo.file_to_matrix(file, delim).astype(float)
	js_data = aggregate_matrix_data(x)
	js_data = normalize_geojson(js_data)
	js_string = create_geojson(js_data)
	return js_string
Пример #5
0
def analyze_file(file, delim, text_col, include_zero_polarity):
    x = fo.file_to_matrix(file, delim)
    x_sentiment = analyze(x, text_col, include_zero_polarity)
    return x_sentiment
Пример #6
0
def geojason_from_file(file, delim):
    x = fo.file_to_matrix(file, delim).astype(float)
    js_data = aggregate_matrix_data(x)
    js_data = normalize_geojson(js_data)
    js_string = create_geojson(js_data)
    return js_string