Z
Z
zax20022020-04-20 00:38:44
Python
zax2002, 2020-04-20 00:38:44

How to separate concatenated words into separate ones?

I'm looking for a library, or API, to do something like this:
"craftstudioapi" -> "craft studio api"
"moreplayermodels" -> "more player models"
"movingelevators" -> "moving elevators"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vadim Shatalov, 2020-04-20
@zax2002

https://stackoverflow.com/questions/38125281/split...

S
Sergey Ilyin, 2020-04-21
@sunsexsurf

it all depends on whether you have your dictionary or not.
if there is - just go through the regular expression "your long word"
if not - nltk and ready-made dictionaries for it.
Vadim Shatalov gave you a fiery link, in general

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question