123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <!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>P</b>articiple</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>nlp</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/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>
- 特征信息
- </h1>
- <ol class="breadcrumb">
- <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
- <li><a href="#">Tables</a></li>
- <li class="active">Data tables</li>
- </ol>
- </section>
- <form role="form">
- <!-- /.box-body -->
- <div class="box-footer">
- <div class="form-group" id="feature_type_div">
- <label>提取内容</label>
- <input type="checkbox" name="featureType" value="1"/>症状
- <input type="checkbox" name="featureType" value="2"/>诊断
- <input type="checkbox" name="featureType" value="3"/>体征
- <input type="checkbox" name="featureType" value="4"/>检验
- <input type="checkbox" name="featureType" value="5"/>检查
- <input type="checkbox" name="featureType" value="9"/>特征
- <button type="button" class="btn btn-success pull-right" onclick="_ajax('/feature/generate')"><i
- class="fa fa-credit-card"></i> 提取
- </button>
- </div>
- </div>
- </form>
- </div>
- <!-- /.content-wrapper -->
- <!-- /.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 -->
- <div class="modal fade" id="modal-default">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span></button>
- <h4 class="modal-title">消息</h4>
- </div>
- <div class="row" id="modal-loading">
- <!-- /.col -->
- <div class="col-md-12">
- <div class="box box-danger box-solid">
- <div class="box-header">
- <h3 class="box-title">提取特征信息</h3>
- </div>
- <div class="box-body">
- 此过程可能需要较长时间,请耐心等待... ...
- </div>
- <!-- /.box-body -->
- <!-- Loading (remove the following to stop the loading)-->
- <div class="overlay">
- <i class="fa fa-refresh fa-spin"></i>
- </div>
- <!-- end loading -->
- </div>
- <!-- /.box -->
- </div>
- <!-- /.col -->
- </div>
- <!-- /.row -->
- <div class="modal-body">
- <p></p>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
- </div>
- </div>
- <!-- /.modal-content -->
- </div>
- <!-- /.modal-dialog -->
- </div>
- <!-- /.modal -->
- <!-- 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>
- <!-- DataTables -->
- <script src="../plugins/datatables/jquery.dataTables.min.js"></script>
- <script src="../plugins/datatables/dataTables.bootstrap.min.js"></script>
- <!-- SlimScroll -->
- <script src="../plugins/slimScroll/jquery.slimscroll.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>
- <script>
- function _ajax(url) {
- var types = new Array();
- $("input:checkbox:checked").each(function (i) {
- types[i] = $(this).val();
- });
- if (types.length < 1) {
- alert("请选择提取内容!");
- return;
- }
- $("#modal-loading").show();
- $("#modal-default .modal-header").hide();
- $("#modal-default .modal-body p").text("");
- $("#modal-default .modal-footer").hide();
- $("#modal-default").modal("show");
- $.support.cors = true;
- $.ajax({
- url: nlp_web_url + url,
- dataType: "json",
- type: "post",
- data: {"featureTypes": types.join(",")},
- success: function (data) {
- $("#modal-loading").hide();
- $("#modal-default .modal-header").show();
- $("#modal-default .modal-footer").show();
- $("#modal-default .modal-body p").text(data.msg);
- $("#modal-default").modal("show");
- }
- });
- };
- </script>
- </body>
- </html>
|