Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
Cloud & Deployment
Core Language & Structure
Data Manipulation & Analysis
Engineering Data & Computation
External Interfaces & Connections
Financial Data & Computation
Geographic Data & Computation
Geometry
Graphs & Networks
Higher Mathematical Computation
Images
Knowledge Representation & Natural Language
Machine Learning
Notebook Documents & Presentation
Scientific and Medical Data & Computation
Social, Cultural & Linguistic Data
Strings & Text
Symbolic & Numeric Computation
System Operation & Setup
Time-Related Computation
User Interface Construction
Visualization & Graphics
Random Paclet
Alphabetical List
Using Paclets
Create a Paclet
Get Started
Download Definition Notebook
Learn More about
Wolfram Language
Selfies
Guides
Selfies Functions
Tech Notes
Generating Molecules With SELFIES
Symbols
EncodingToSelfies
FromSelfies
SelfiesAlphabet
SelfiesCounts
SelfiesEncoding
SplitSelfies
ToSelfies
WolframChemistry`Selfies`
S
p
l
i
t
S
e
l
f
i
e
s
S
p
l
i
t
S
e
l
f
i
e
s
[
s
e
l
f
i
e
s
]
r
e
t
u
r
n
s
t
h
e
s
y
m
b
o
l
s
o
f
t
h
e
S
E
L
F
I
E
S
s
t
r
i
n
g
o
n
e
-
b
y
-
o
n
e
w
i
t
h
o
r
d
e
r
p
r
e
s
e
r
v
e
d
.
S
p
l
i
t
S
e
l
f
i
e
s
[
{
s
1
,
s
2
,
…
}
]
r
e
t
u
r
n
s
a
l
i
s
t
o
f
r
e
s
u
l
t
s
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
Examples
(
3
)
Basic Examples
(
2
)
Split a SELFIES string:
I
n
[
1
]
:
=
S
p
l
i
t
S
e
l
f
i
e
s
[
"
[
C
]
[
O
]
[
C
]
"
]
O
u
t
[
1
]
=
{
[
C
]
,
[
O
]
,
[
C
]
}
Find all the tokens in a medium-sized molecule's SELFIES string:
I
n
[
1
]
:
=
s
p
l
i
t
=
S
p
l
i
t
S
e
l
f
i
e
s
T
o
S
e
l
f
i
e
s
M
o
l
e
c
u
l
e
F
o
r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