<commit_before>package com.fpt.ruby.nlp;

import java.util.ArrayList;

import com.fpt.ruby.model.QuestionStructure;

import fpt.qa.intent.detection.MovieIntentDetection;

public class NlpHelper {
	static{
		MovieIntentDetection.init("qc", "dicts");
	}
	
	public static QuestionStructure processQuestionStructure(String question){<commit_msg>minor fix for resource path<commit_after>package com.fpt.ruby.nlp;

import java.util.ArrayList;

import com.fpt.ruby.helper.RedisHelper;
import com.fpt.ruby.model.QuestionStructure;

import fpt.qa.intent.detection.MovieIntentDetection;

public class NlpHelper {
	static{
		String dir = (new RedisHelper()).getClass().getClassLoader().getResource("").getPath();
		MovieIntentDetection.init(dir + "/qc", dir + "/dicts");
	}
	
	public static QuestionStructure processQuestionStructure(String question){
{'fraction_non_alphanumeric': 0.11785714285714285, 'fraction_numerical': 0.0, 'mean_word_length': 6.127118644067797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3622436', 'n_tokens_mistral': 275, 'n_tokens_neox': 255, 'n_words': 49}