Commit ed9ff9a6 authored by Weerasinghe D.N.H's avatar Weerasinghe D.N.H

BACKEND : class_model_detection_service nlp.load moved to save_attribute_method

parent 8e2686eb
......@@ -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
......
No preview for this file type
......@@ -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('', '', '()')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment