- 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
- 虚词:副词、介词、连词、助词、拟声词、叹词。
n 名词
nr 人名
from pyspark import SparkContext | |
import numpy as np | |
from sklearn.cross_validation import train_test_split, Bootstrap | |
from sklearn.datasets import make_classification | |
from sklearn.metrics import accuracy_score | |
from sklearn.tree import DecisionTreeClassifier | |
def run(sc): |
# cntrade R语言版 | |
# 作者:陈堰平(新华指数有限责任公司,[email protected]) | |
# 使用网易股票数据接口 原stata版的作者为: | |
# 李春涛(中南财经政法大学,[email protected]) | |
# 张璇(中南财经政法大学,[email protected]) | |
# example: | |
# cntrade(c('600000', '000008'), path ='D:/stockprice', start = '20010104', end = '20120124') | |
cntrade <- function(tickers, path = "", start = "19910101", end = "") { | |
max_plots <- 5 | |
shinyServer(function(input, output) { | |
# Insert the right number of plot output objects into the web page | |
output$plots <- renderUI({ | |
plot_output_list <- lapply(1:input$n, function(i) { | |
plotname <- paste("plot", i, sep="") | |
plotOutput(plotname, height = 280, width = 250) | |
}) |