oroszgy commited on
Commit
2daf212
1 Parent(s): cb9b95d

Spacy demo

Browse files
Files changed (3) hide show
  1. .gitignore +207 -0
  2. app.py +5 -0
  3. requirements.txt +1 -0
.gitignore ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### JetBrains template
2
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
3
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
4
+
5
+ # User-specific stuff
6
+ .idea/**/workspace.xml
7
+ .idea/**/tasks.xml
8
+ .idea/**/usage.statistics.xml
9
+ .idea/**/dictionaries
10
+ .idea/**/shelf
11
+
12
+ # Generated files
13
+ .idea/**/contentModel.xml
14
+
15
+ # Sensitive or high-churn files
16
+ .idea
17
+
18
+ # Gradle
19
+ .idea/**/gradle.xml
20
+ .idea/**/libraries
21
+
22
+ # Gradle and Maven with auto-import
23
+ # When using Gradle or Maven with auto-import, you should exclude module files,
24
+ # since they will be recreated, and may cause churn. Uncomment if using
25
+ # auto-import.
26
+ # .idea/artifacts
27
+ # .idea/compiler.xml
28
+ # .idea/jarRepositories.xml
29
+ # .idea/modules.xml
30
+ # .idea/*.iml
31
+ # .idea/modules
32
+ # *.iml
33
+ # *.ipr
34
+
35
+ # CMake
36
+ cmake-build-*/
37
+
38
+ # Mongo Explorer plugin
39
+ .idea/**/mongoSettings.xml
40
+
41
+ # File-based project format
42
+ *.iws
43
+
44
+ # IntelliJ
45
+ out/
46
+
47
+ # mpeltonen/sbt-idea plugin
48
+ .idea_modules/
49
+
50
+ # JIRA plugin
51
+ atlassian-ide-plugin.xml
52
+
53
+ # Cursive Clojure plugin
54
+ .idea/replstate.xml
55
+
56
+ # Crashlytics plugin (for Android Studio and IntelliJ)
57
+ com_crashlytics_export_strings.xml
58
+ crashlytics.properties
59
+ crashlytics-build.properties
60
+ fabric.properties
61
+
62
+ # Editor-based Rest Client
63
+ .idea/httpRequests
64
+
65
+ # Android studio 3.1+ serialized cache file
66
+ .idea/caches/build_file_checksums.ser
67
+
68
+ ### Python template
69
+ # Byte-compiled / optimized / DLL files
70
+ __pycache__/
71
+ *.py[cod]
72
+ *$py.class
73
+
74
+ # C extensions
75
+ *.so
76
+
77
+ # Distribution / packaging
78
+ .Python
79
+ build/
80
+ develop-eggs/
81
+ dist/
82
+ downloads/
83
+ eggs/
84
+ .eggs/
85
+ lib/
86
+ lib64/
87
+ parts/
88
+ sdist/
89
+ var/
90
+ wheels/
91
+ share/python-wheels/
92
+ *.egg-info/
93
+ .installed.cfg
94
+ *.egg
95
+ MANIFEST
96
+
97
+ # PyInstaller
98
+ # Usually these files are written by a python script from a template
99
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
100
+ *.manifest
101
+ *.spec
102
+
103
+ # Installer logs
104
+ pip-log.txt
105
+ pip-delete-this-directory.txt
106
+
107
+ # Unit test / coverage reports
108
+ htmlcov/
109
+ .tox/
110
+ .nox/
111
+ .coverage
112
+ .coverage.*
113
+ .cache
114
+ nosetests.xml
115
+ coverage.xml
116
+ *.cover
117
+ *.py,cover
118
+ .hypothesis/
119
+ .pytest_cache/
120
+ cover/
121
+
122
+ # Translations
123
+ *.mo
124
+ *.pot
125
+
126
+ # Django stuff:
127
+ *.log
128
+ local_settings.py
129
+ db.sqlite3
130
+ db.sqlite3-journal
131
+
132
+ # Flask stuff:
133
+ instance/
134
+ .webassets-cache
135
+
136
+ # Scrapy stuff:
137
+ .scrapy
138
+
139
+ # Sphinx documentation
140
+ docs/_build/
141
+
142
+ # PyBuilder
143
+ .pybuilder/
144
+ target/
145
+
146
+ # Jupyter Notebook
147
+ .ipynb_checkpoints
148
+
149
+ # IPython
150
+ profile_default/
151
+ ipython_config.py
152
+
153
+ # pyenv
154
+ # For a library or package, you might want to ignore these files since the code is
155
+ # intended to run in multiple environments; otherwise, check them in:
156
+ # .python-version
157
+
158
+ # pipenv
159
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
160
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
161
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
162
+ # install all needed dependencies.
163
+ #Pipfile.lock
164
+
165
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
166
+ __pypackages__/
167
+
168
+ # Celery stuff
169
+ celerybeat-schedule
170
+ celerybeat.pid
171
+
172
+ # SageMath parsed files
173
+ *.sage.py
174
+
175
+ # Environments
176
+ .env
177
+ .venv
178
+ env/
179
+ venv/
180
+ ENV/
181
+ env.bak/
182
+ venv.bak/
183
+
184
+ # Spyder project settings
185
+ .spyderproject
186
+ .spyproject
187
+
188
+ # Rope project settings
189
+ .ropeproject
190
+
191
+ # mkdocs documentation
192
+ /site
193
+
194
+ # mypy
195
+ .mypy_cache/
196
+ .dmypy.json
197
+ dmypy.json
198
+
199
+ # Pyre type checker
200
+ .pyre/
201
+
202
+ # pytype static type analyzer
203
+ .pytype/
204
+
205
+ # Cython debug symbols
206
+ cython_debug/
207
+
app.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ import spacy_streamlit
2
+
3
+ models = ["hu_core_news_lg"]
4
+ default_text = "Ezután Király Márton, a beruházó cég projektvezetője mesélte el, hogy a területet 2006-ban vásárolta meg az önkormányzattól az első tulajdonos."
5
+ spacy_streamlit.visualize(models, default_text)
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ spacy-streamlit