import os, sys sys.path.append(os.getcwd()) from bow_new import bagOfWords import pandas as pd d = {} d["stemming"] = True d["with_html"] = False d["split_type"] = "problem" d["model_type"] = "NN" x = bagOfWords(**d) answer = x.predict() for i, j in d.items(): answer[i] = [j] * 5 df = pd.DataFrame(answer) df.to_csv("Result/BOW/bow5.csv", sep=",", index=False) print(df)
from bow_new import bagOfWords x = bagOfWords(model_type="NN") answer = x.predict() print(answer) #from singleSkill import KC_analysis #x = KC_analysis(min_count = [5], repr_type="withoutCorrectness",dataset="2012",split_type="base_sequence") #answer = x.predict() #print (answer) #