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

import java.io.File;
import java.util.List;

import fpt.qa.additionalinformation.modifier.ConjunctionWithType;
import fpt.qa.mdnlib.struct.pair.Pair;



public class ConjunctionHelper {
	private ConjunctionWithType conjunctionWithType;
	public ConjunctionHelper(){
		 conjunctionWithType = new ConjunctionWithType( "" );
		 conjunctionWithType.loadConjunctionType( new File( "movies_infor.txt"));
	}
	public ConjunctionHelper(String dir){
		 conjunctionWithType = new ConjunctionWithType( dir );
		 conjunctionWithType.loadConjunctionType( new File(dir + "data/movieNames.txt"));
	}
	
	public List<Pair<String, String>> getConjunction(String text){
		return conjunctionWithType.getOriginRelevantConjunctionsWithType(text); 
	}
	
	/*public List<Pair<String, String>> getConjunction(String text){
		return conjunctionWithType.getOriginRelevantConjunctionsWithType(text); 
	}*/
	<commit_msg>minor fix for name mapper for tv<commit_after>package com.fpt.ruby.conjunction;

import java.io.File;
import java.util.List;

import fpt.qa.additionalinformation.modifier.ConjunctionWithType;
import fpt.qa.mdnlib.struct.pair.Pair;



public class ConjunctionHelper {
	private ConjunctionWithType conjunctionWithType;
	public ConjunctionHelper(){
		 conjunctionWithType = new ConjunctionWithType( "" );
		 conjunctionWithType.loadConjunctionType( new File( "movies_infor.txt"));
	}
	public ConjunctionHelper(String dir){
		 conjunctionWithType = new ConjunctionWithType( dir );
		 conjunctionWithType.loadConjunctionType( new File(dir + "data/movieNames.txt"));
		 conjunctionWithType.loadConjunctionType( new File(dir + "data/tv_domain.txt"));
	}
	
	public List<Pair<String, String>> getConjunction(String text){
		return conjunctionWithType.getOriginRelevantConjunctionsWithType(text); 
	}
	
	/*public List<Pair<String, String>> getConjunction(String text){
		return conjunctionWithType.getOriginRelevantConjunctionsWithType(text); 
	}*/
	
{'fraction_non_alphanumeric': 0.1006066734074823, 'fraction_numerical': 0.0, 'mean_word_length': 6.496212121212121, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5830313', 'n_tokens_mistral': 663, 'n_tokens_neox': 568, 'n_words': 110}