Commit fca04b80 authored by Sylvain Coulange's avatar Sylvain Coulange

correction inversion couleur nom/adj + ajout POS dans title, avant Tag

parent f15011e9
......@@ -58,7 +58,7 @@ async function runSpacy() {
+ '<span style="color:'+ pos["DET"].color +';'
+ stylesCommuns
+ stylesUnderline + 'text-decoration-color:' + pos["ADP"].color
+'" title="'+ data.outText[i].tag
+'" title="'+ data.outText[i].pos + ', ' + data.outText[i].tag
+'">'+ data.outText[i].text + '</span>';
}
......@@ -68,7 +68,7 @@ async function runSpacy() {
+ '<span style="color:'+ pos["PRON"].color +';'
+ stylesCommuns
+ stylesUnderline + 'text-decoration-color:' + pos["ADV"].color
+'" title="'+ data.outText[i].tag
+'" title="'+ data.outText[i].pos + ', ' + data.outText[i].tag
+'">'+ data.outText[i].text + '</span>';
}
......@@ -76,7 +76,7 @@ async function runSpacy() {
else result = result
+ '<span style="color:'+ col +';'
+ stylesCommuns
+'" title="'+ data.outText[i].tag
+'" title="'+ data.outText[i].pos + ', ' + data.outText[i].tag
+'">'+ data.outText[i].text + '</span>';
}
......
pos = {
"ADJ": { "color":"#00b54a", "nom":"Adjectif", "forme":"" },
"ADJ": { "color":"#980086", "nom":"Adjectif", "forme":"" },
"ADP": { "color":"#c00018", "nom":"", "forme":"" },
"ADV": { "color":"#3984c6", "nom":"", "forme":"" },
"AUX": { "color":"#eda01a", "nom":"", "forme":"" },
......@@ -7,7 +7,7 @@ pos = {
"CCONJ": { "color":"#fff", "nom":"", "forme":"" },
"DET": { "color":"#f3eb20", "nom":"", "forme":"" },
"INTJ": { "color":"#8a9092", "nom":"", "forme":"" },
"NOUN": { "color":"#980086", "nom":"", "forme":"" },
"NOUN": { "color":"#00b54a", "nom":"", "forme":"" },
"NUM": { "color":"#f3eb20", "nom":"", "forme":"" },
"PART": { "color":"", "nom":"", "forme":"" },
"PRON": { "color":"#a56026", "nom":"", "forme":"" },
......
{
"sp_consigne": {
"fr": "Entrez du texte à analyser :",
"zh": "情插入一些案文:"
},
"sp_exemple": {
"fr": "Générer un exemple",
"zh": "提出一個例子"
},
"sp_result": {
"fr": "Résultats :",
"zh": "成果"
},
"sp_analyser": {
"fr": "Analyser",
"zh": "分析"
}
}
\ No newline at end of file
......@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GrammaColor</title>
<title>GrammaChrome</title>
<link rel="shortcut icon" type="image/png" href="{% static 'wikicolor.ico' %}"/>
<link rel="stylesheet" type="text/css" href="{% static 'styles/styles.css'%}">
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
......@@ -17,7 +17,7 @@
</select>
</div>
<h1>GrammaColor (proto)</h1>
<h1>GrammaChrome (proto)</h1>
<div class="inputDiv">
<h2>Entrez du texte à analyser :</h2>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment