Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
GrammaColor
Commits
b0547d2d
Commit
b0547d2d
authored
Aug 28, 2020
by
Sylvain Coulange
Browse files
debug ADP_DET
parent
d93bdca0
Changes
1
Hide whitespace changes
Inline
Side-by-side
static/js/coloriser.js
View file @
b0547d2d
...
...
@@ -52,9 +52,9 @@ async function runSpacy() {
else
if
(
data
.
outText
[
i
].
text
==
"
"
)
result
=
result
+
"
<span style='
"
+
stylesCommuns
+
"
'> </span>
"
;
// bicolores → soulignage
else
if
(
data
.
outText
[
i
].
pos
==
"
DET
"
&&
data
.
outText
[
i
].
tag
.
slice
(
0
,
7
)
==
"
ADP_DET
"
)
{
else
if
(
data
.
outText
[
i
].
tag
.
slice
(
0
,
7
)
==
"
ADP_DET
"
)
{
result
=
result
+
'
<span style="color:
'
+
col
+
'
;
'
+
'
<span style="color:
'
+
pos
[
"
DET
"
].
col
or
+
'
;
'
+
stylesCommuns
+
stylesUnderline
+
'
text-decoration-color:
'
+
pos
[
"
ADP
"
].
color
+
'
" title="
'
+
data
.
outText
[
i
].
tag
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment