Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-158
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-158
2022-158
Commits
ed9ff9a6
Commit
ed9ff9a6
authored
Sep 13, 2022
by
Weerasinghe D.N.H
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BACKEND : class_model_detection_service nlp.load moved to save_attribute_method
parent
8e2686eb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
3 deletions
+2
-3
backend/app.py
backend/app.py
+1
-1
backend/database.db
backend/database.db
+0
-0
backend/services/class_model_detection_service.py
backend/services/class_model_detection_service.py
+1
-2
backend/submissions/class/Class_Diagrams.jpg
backend/submissions/class/Class_Diagrams.jpg
+0
-0
No files found.
backend/app.py
View file @
ed9ff9a6
...
...
@@ -5,7 +5,7 @@ from flask_jwt_extended import JWTManager
from
config.database
import
db
from
constants.http_status_codes_constant
import
HTTP_404_NOT_FOUND
,
HTTP_500_INTERNAL_SERVER_ERROR
#
import services.question_preprocess_service
import
services.question_preprocess_service
from
routes.auth_routes
import
auth
from
routes.module_routes
import
module
from
routes.assignment_routes
import
assignment
...
...
backend/database.db
View file @
ed9ff9a6
No preview for this file type
backend/services/class_model_detection_service.py
View file @
ed9ff9a6
...
...
@@ -15,8 +15,6 @@ import spacy
from
config.database
import
db
from
models.method
import
Method
nlp
=
spacy
.
load
(
'en_core_web_sm'
)
def
component_separation
(
filename
,
class_comp_id
):
mdl1_path
=
app
.
CLASS_SAVED_MODEL_PATH
...
...
@@ -108,6 +106,7 @@ def text_extraction(image):
def
save_attribute_method
(
text
,
typ
):
nlp
=
spacy
.
load
(
'en_core_web_sm'
)
for
element
in
text
:
access
=
covert_to_access_specifier
(
element
)
removable
=
str
.
maketrans
(
''
,
''
,
'()'
)
...
...
backend/submissions/class/Class_Diagrams.jpg
deleted
100644 → 0
View file @
8e2686eb
64 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment