Слияние кода завершено, страница обновится автоматически
<!-- Copyright 2019 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================-->
<!DOCTYPE html>
<html>
<head>
<title>TensorFlow.js toxicity classifier demo</title>
<style>
body {
font-family: 'Helvetica Neue', sans-serif;
box-sizing: border-box;
line-height: 1.5;
}
h1 {
margin-bottom: 30px;
font-size: 34px;
}
.description {
margin-bottom: 60px;
}
#main {
width: 1000px;
margin-top: 50px;
margin-left: auto;
margin-right: auto;
}
.row {
display: flex;
flex-direction: row;
}
.row:nth-of-type(2n) {
background: whitesmoke;
}
.row .text {
flex: 1 1 auto;
}
.row .label {
border-left: solid 1px #ccc;
width: 60px;
min-width: 60px;
max-width: 60px;
}
.row:first-of-type .label {
border: none;
}
.row:first-of-type .label, .row:first-of-type .text {
font-weight: bold;
text-transform: lowercase;
line-height: 1.4;
padding-bottom: 20px;
}
.positive {
font-weight: bold;
color: red;
}
.text, .label {
padding: 10px;
}
#classify-new-text-input {
border: none;
border-bottom: solid 1px #ccc;
cursor: pointer;
font-size: 14px;
line-height: 2;
width: calc(100% - 127px);
margin-right: 15px;
padding-left: 5px;
padding-right: 5px;
padding-top: 4px;
padding-bottom: 4px;
}
#classify-new-text, #classify-new-text-input {
display: inline-block;
vertical-align: top;
}
#classify-new-text {
border: none;
text-transform: uppercase;
padding: 9px 14px 9px 14px;
font-size: 13px;
border-radius: 3px;
letter-spacing: 1px;
background: #0277bd;
color: white;
}
#table-wrapper {
margin-bottom: 60px;
}
p {
font-weight: bold;
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
</head>
<body>
<div id='main'>
<h1>TensorFlow.js toxicity classifier demo</h1>
<div class="description">This is a demo of the TensorFlow.js toxicity model, which classifies text according to whether it exhibits offensive attributes (i.e. profanity, sexual explicitness). The samples in the table below were taken from this <a href="https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge/data">Kaggle dataset</a>.</div>
<div id="table-wrapper"></div>
<p>Enter text below and click 'Classify' to add it to the table.</p>
<form id="classify-new">
<input id="classify-new-text-input" placeholder="i.e. 'you suck'" required="">
<button id="classify-new-text" type="submit">Classify</div>
</form>
</div>
<script src="index.js"></script>
</body>
</html>
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )