mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
Also fix unchecked exception in PY-37765 (cherry picked from commit 3b8f3ca228d8e649a63d277314bf13994b80ffd3) IJ-MR-6623 GitOrigin-RevId: 22026406e912c057bb7d81cb59d7a4e21da6f0f5
11 lines
283 B
Python
11 lines
283 B
Python
import numpy as np
|
|
|
|
|
|
def split_by_words(X):
|
|
X = np.core.chararray.lower(X)
|
|
return np.core.chararray.split(X)
|
|
<selection>DELIMITERS = "!?:;,.\'-+/\\()"
|
|
|
|
def parse(string):
|
|
return "".join((" " if char in DELIMITERS else char) for char in string).split()
|
|
</selection><caret> |