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
e
l
f
i
e
s
A
l
p
h
a
b
e
t
S
e
l
f
i
e
s
A
l
p
h
a
b
e
t
[
{
m
1
,
m
2
,
…
}
]
r
e
t
u
r
n
s
a
l
i
s
t
o
f
a
l
l
u
n
i
q
u
e
t
o
k
e
n
s
t
h
a
t
a
p
p
e
a
r
i
n
t
h
e
S
E
L
F
I
E
S
s
t
r
i
n
g
s
c
o
r
r
e
s
p
o
n
d
i
n
g
t
o
t
h
e
i
n
p
u
t
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
Examples
(
1
)
Basic Examples
(
1
)
Convert a list of SELFIES strings to an alphabet of tokens:
I
n
[
1
]
:
=
S
e
l
f
i
e
s
A
l
p
h
a
b
e
t
[
{
"
[
C
]
[
O
]
[
C
]
"
,
"
[
C
]
[
=
C
]
[
C
]
[
=
C
]
[
C
]
[
=
C
]
[
R
i
n
g
1
]
[
=
B
r
a
n
c
h
1
]
"
,
"
[
O
]
[
=
P
]
[
B
r
a
n
c
h
1
]
[
C
]
[
O
-
1
]
[
B
r
a
n
c
h
1
]
[
C
]
[
O
-
1
]
[
O
]
"
}
]
O
u
t
[
1
]
=
{
[
O
]
,
[
O
-
1
]
,
[
=
C
]
,
[
=
B
r
a
n
c
h
1
]
,
[
B
r
a
n
c
h
1
]
,
[
R
i
n
g
1
]
,
[
=
P
]
,
[
C
]
}
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
S
e
l
f
i
e
s
F
u
n
c
t
i
o
n
s
"
"