Platform
Resources
Pricing
Sign in
Get started
Zaid Alyafeai
Computer science major master student interested in computer vision and deep learning
Workspace
Fork
Published
By
Zaid Alyafeai
Edited
Apr 7, 2018
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function
mapText
(
txt
)
{
var
mpTxt
=
new
Array
(
getLargest
)
;
for
(
var
j
=
0
;
j
<
getLargest
;
j
++
)
{
mpTxt
[
j
]
=
0
;
}
const
spTxt
=
txt
.
split
(
/\W+/
)
;
for
(
var
j
=
0
;
j
<
spTxt
.
length
;
j
++
)
{
mpTxt
[
j
]
=
wordidx
[
spTxt
[
j
]
]
;
}
return
mpTxt
}
Insert cell
mapText
(
'hello'
)
Insert cell
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dataset
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
idxword
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
wordidx
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
getLargest
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
mapText
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
trainSet
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML