|
@@ -0,0 +1,210 @@
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
+<html>
|
|
|
|
+<head>
|
|
|
|
+ <meta charset="utf-8">
|
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
+ <title>AdminLTE 2 | Invoice</title>
|
|
|
|
+ <!-- Tell the browser to be responsive to screen width -->
|
|
|
|
+ <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
|
|
+ <!-- Bootstrap 3.3.6 -->
|
|
|
|
+ <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
|
|
|
|
+ <!-- Font Awesome -->
|
|
|
|
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
|
|
|
|
+ <!-- Ionicons -->
|
|
|
|
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
|
|
|
|
+ <!-- Theme style -->
|
|
|
|
+ <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
|
|
|
|
+ <!-- AdminLTE Skins. Choose a skin from the css/skins
|
|
|
|
+ folder instead of downloading all of them to reduce the load. -->
|
|
|
|
+ <link rel="stylesheet" href="../dist/css/skins/_all-skins.min.css">
|
|
|
|
+
|
|
|
|
+ <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
|
|
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
|
|
|
+ <!--[if lt IE 9]>
|
|
|
|
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
|
|
|
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
|
|
+ <![endif]-->
|
|
|
|
+ <style>
|
|
|
|
+ .interval {
|
|
|
|
+ padding: 1px 8px !important;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #my_file {
|
|
|
|
+ visibility: hidden; /* 隐藏 */
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+</head>
|
|
|
|
+<body class="hold-transition skin-blue sidebar-mini">
|
|
|
|
+<div class="wrapper">
|
|
|
|
+
|
|
|
|
+ <header class="main-header">
|
|
|
|
+ <!-- Logo -->
|
|
|
|
+ <a href="#" class="logo">
|
|
|
|
+ <!-- logo for regular state and mobile devices -->
|
|
|
|
+ <span class="logo-lg"><b>D</b>iagbot</span>
|
|
|
|
+ </a>
|
|
|
|
+
|
|
|
|
+ </header>
|
|
|
|
+ <!-- Left side column. contains the logo and sidebar -->
|
|
|
|
+ <aside class="main-sidebar">
|
|
|
|
+ <!-- sidebar: style can be found in sidebar.less -->
|
|
|
|
+ <section class="sidebar">
|
|
|
|
+ <!-- /.search form -->
|
|
|
|
+ <!-- sidebar menu: : style can be found in sidebar.less -->
|
|
|
|
+ <ul class="sidebar-menu">
|
|
|
|
+ <li class="header">MAIN NAVIGATION</li>
|
|
|
|
+ <li class="treeview active">
|
|
|
|
+ <a href="#">
|
|
|
|
+ <i class="fa fa-folder"></i> <span>diagbot</span>
|
|
|
|
+ <span class="pull-right-container">
|
|
|
|
+ <i class="fa fa-angle-left pull-right"></i>
|
|
|
|
+ </span>
|
|
|
|
+ </a>
|
|
|
|
+ <ul class="treeview-menu">
|
|
|
|
+ <li class="active"><a href="/push-web/participle/index"><i class="fa fa-circle-o"></i>分词示例</a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="active"><a href="/push-web/extract/index"><i class="fa fa-circle-o"></i>提取特征</a></li>
|
|
|
|
+ <li class="active"><a href="/push-web/relation/list"><i class="fa fa-circle-o"></i>数据标注</a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="active"><a href="/push-web/relation/index"><i class="fa fa-circle-o"></i>关系抽取</a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="active"><a href="/push-web/algorithm/index"><i class="fa fa-circle-o"></i>算法分析</a>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </section>
|
|
|
|
+ <!-- /.sidebar -->
|
|
|
|
+ </aside>
|
|
|
|
+
|
|
|
|
+ <!-- Content Wrapper. Contains page content -->
|
|
|
|
+ <div class="content-wrapper">
|
|
|
|
+ <!-- Content Header (Page header) -->
|
|
|
|
+ <section class="content-header">
|
|
|
|
+ <h1>
|
|
|
|
+ <small></small>
|
|
|
|
+ </h1>
|
|
|
|
+ <ol class="breadcrumb">
|
|
|
|
+ <li><a href="#"><i class="fa fa-dashboard"></i>Diagbot</a></li>
|
|
|
|
+ <li><a href="#">nlp</a></li>
|
|
|
|
+ <li class="active">分词示例</li>
|
|
|
|
+ </ol>
|
|
|
|
+ </section>
|
|
|
|
+ <!-- Main content -->
|
|
|
|
+ <section class="invoice">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-xs-12">
|
|
|
|
+ <button type="button" class="btn btn-success pull-right"
|
|
|
|
+ onclick="_ajax()"><i
|
|
|
|
+ class="fa fa-credit-card"></i> 开始
|
|
|
|
+ </button>
|
|
|
|
+ <button type="button" class="btn btn-success pull-right"
|
|
|
|
+ onclick="after()"><i
|
|
|
|
+ class="fa fa-credit-card"></i> 下一页
|
|
|
|
+ </button>
|
|
|
|
+ <button type="button" class="btn btn-success pull-right"
|
|
|
|
+ onclick="before()"><i
|
|
|
|
+ class="fa fa-credit-card"></i> 上一页
|
|
|
|
+ </button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-md-12">
|
|
|
|
+ <!-- TABLE: LATEST ORDERS -->
|
|
|
|
+ <div class="box box-info">
|
|
|
|
+ <div class="box-header with-border">
|
|
|
|
+ <h3 class="box-title">正样本信息</h3>
|
|
|
|
+ <div class="box-tools pull-right">
|
|
|
|
+ <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
|
|
|
+ </button>
|
|
|
|
+ <button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- /.box-header -->
|
|
|
|
+ <div class="box-body">
|
|
|
|
+ <div class="table-responsive">
|
|
|
|
+ <table class="table no-margin">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th width="90%">样本</th>
|
|
|
|
+ <th width="10%">ID</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="symptom_extract_id">
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- /.table-responsive -->
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- /.box -->
|
|
|
|
+ </div>
|
|
|
|
+ <!-- ./col -->
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <script>
|
|
|
|
+ var pageNum = 0;
|
|
|
|
+ function before() {
|
|
|
|
+ if (pageNum > 0) {
|
|
|
|
+ pageNum = pageNum -1;
|
|
|
|
+ }
|
|
|
|
+ _ajax();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function after() {
|
|
|
|
+ pageNum = pageNum +1;
|
|
|
|
+ _ajax();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function _ajax() {
|
|
|
|
+ $.support.cors = true;
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: nlp_web_url + '/relation/list',
|
|
|
|
+ data: {"pageNum":pageNum},
|
|
|
|
+ dataType: "json",
|
|
|
|
+ type: "post",
|
|
|
|
+ success: function (data) {
|
|
|
|
+ var taggingResults = data.data;
|
|
|
|
+ var h = "";
|
|
|
|
+ $.each(taggingResults, function (index, taggingResult) {
|
|
|
|
+ h += "<tr><td>";
|
|
|
|
+ h += taggingResult.sentence;
|
|
|
|
+ h += "</td>";
|
|
|
|
+ h += "<td>";
|
|
|
|
+ h += taggingResult.sentenceId;
|
|
|
|
+ h += "</td></tr>";
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ $("#symptom_extract_id").html(h);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ };
|
|
|
|
+ </script>
|
|
|
|
+ </section>
|
|
|
|
+ <!-- /.content -->
|
|
|
|
+ <div class="clearfix"></div>
|
|
|
|
+</div>
|
|
|
|
+
|
|
|
|
+<!-- /.control-sidebar -->
|
|
|
|
+<!-- Add the sidebar's background. This div must be placed
|
|
|
|
+ immediately after the control sidebar -->
|
|
|
|
+<div class="control-sidebar-bg"></div>
|
|
|
|
+</div>
|
|
|
|
+<!-- ./wrapper -->
|
|
|
|
+
|
|
|
|
+<!-- jQuery 2.2.3 -->
|
|
|
|
+<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
|
|
|
|
+<!-- Bootstrap 3.3.6 -->
|
|
|
|
+<script src="../bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
+<!-- FastClick -->
|
|
|
|
+<script src="../plugins/fastclick/fastclick.js"></script>
|
|
|
|
+<!-- AdminLTE App -->
|
|
|
|
+<script src="../dist/js/app.min.js"></script>
|
|
|
|
+<!-- AdminLTE for demo purposes -->
|
|
|
|
+<script src="../dist/js/demo.js"></script>
|
|
|
|
+
|
|
|
|
+<script src="../dist/js/push.js"></script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|