Add splitter text docs
This commit is contained in:
parent
60563b54d2
commit
d187c66dde
2
.gitignore
vendored
2
.gitignore
vendored
@ -69,7 +69,7 @@ instance/
|
||||
.scrapy
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
research/_build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
8
.idea/.gitignore
vendored
Normal file
8
.idea/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
6
.idea/misc.xml
Normal file
6
.idea/misc.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
17
.idea/ml.iml
Normal file
17
.idea/ml.iml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="Python" name="Python">
|
||||
<configuration sdkName="Python 3.9 (venv)" />
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Python 3.9 (venv) interpreter library" level="application" />
|
||||
</component>
|
||||
</module>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/ml.iml" filepath="$PROJECT_DIR$/.idea/ml.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
19
research/text/splitter/splitter.md
Normal file
19
research/text/splitter/splitter.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Text Splitter
|
||||
|
||||
***Objectives***
|
||||
- [ ] Split the statement into array of words
|
||||
- [ ] Split the concat words into other of array
|
||||
|
||||
***Declaratives***
|
||||
- Statement I (split the concat words)
|
||||
```text
|
||||
myword and youknowaboutitaswell
|
||||
```
|
||||
- Result as output
|
||||
```text
|
||||
my word and you know about it as well
|
||||
```
|
||||
- Result as output in code
|
||||
```text
|
||||
[my, word, and, you, know, about, it, as, well]
|
||||
```
|
7
research/text/splitter/splitter.py
Normal file
7
research/text/splitter/splitter.py
Normal file
@ -0,0 +1,7 @@
|
||||
import enchant
|
||||
|
||||
locale = 'en_US'
|
||||
|
||||
dict = enchant.Dict(locale)
|
||||
|
||||
print(dict.check("Hello"))
|
Loading…
Reference in New Issue
Block a user