Skip to content

Commit

Permalink
Restructured data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishbaghudana authored and juanmirocks committed Oct 20, 2016
1 parent 616482b commit 960d0fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions relna/learning/svmlight.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import sys
import subprocess
import pkg_resources

from nala.structures.data import Label
from nala.utils import MUT_CLASS_ID
Expand All @@ -12,11 +13,11 @@ class SVMLightTreeKernels:
Base class for interaction with Alessandro Moschitti's Tree Kernels in
SVM Light
"""
def __init__(self, directory='resources/svmlight/', model='default_model', use_tree_kernel=True):
def __init__(self, directory, use_tree_kernel=True):
self.directory = directory
"""the directory where the executables svm_classify and svm_learn are
located"""
self.model = model
self.model = pkg_resources.resource_filename('relna.data', 'default_model')
"""the model to read from / write to"""
self.use_tree_kernel = use_tree_kernel
"""whether to use tree kernels or not"""
Expand Down

0 comments on commit 960d0fa

Please sign in to comment.