Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illinois-srl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CogComp
illinois-srl
Commits
2afb7060
Commit
2afb7060
authored
9 years ago
by
Shyam Upadhyay
Browse files
Options
Downloads
Patches
Plain Diff
confiugrable learner
parent
3722c3e5
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Shyam
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/edu/illinois/cs/cogcomp/srl/Main.java
+5
-4
5 additions, 4 deletions
src/main/java/edu/illinois/cs/cogcomp/srl/Main.java
with
5 additions
and
4 deletions
src/main/java/edu/illinois/cs/cogcomp/srl/Main.java
+
5
−
4
View file @
2afb7060
...
...
@@ -422,14 +422,15 @@ public class Main {
cache
.
close
();
SLParameters
params
=
new
SLParameters
();
params
.
loadConfigFile
(
"config/learning.properties"
);
params
.
C_FOR_STRUCTURE
=
(
float
)
c
;
// initializeSolver(params);
params
.
L2_LOSS_SSVM_SOLVER_TYPE
=
L2LossSSVMLearner
.
SolverType
.
ParallelDCDSolver
;
params
.
NUMBER_OF_THREADS
=
numThreads
;
// params.L2_LOSS_SSVM_SOLVER_TYPE= L2LossSSVMLearner.SolverType.ParallelDCDSolver;
//
params.
NUMBER_OF_THREADS = numThreads
;
SRLMulticlassInference
infSolver
=
new
SRLMulticlassInference
(
manager
,
model
);
Learner
learner
=
LearnerFactory
.
getLearner
(
infSolver
,
new
SRLFeatureExtractor
(),
params
);
log
.
info
(
"Setting up solver, learning may take time if you have too many instances in SLProblem ...."
);
WeightVector
w
=
learner
.
train
(
problem
);
JLISLearner
.
saveWeightVector
(
w
,
manager
.
getModelFileName
(
model
));
JLISLearner
.
evaluateSRLLabel
(
infSolver
,
problem
,
w
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment