diff --git a/.classpath b/.classpath index b9832e4..fa09eea 100644 --- a/.classpath +++ b/.classpath @@ -3,8 +3,7 @@ - - + diff --git a/Description.props b/Description.props index 3482ded..e12ebdf 100644 --- a/Description.props +++ b/Description.props @@ -4,10 +4,10 @@ PackageName=NBSVM # Version (required) -Version=1.0.0 +Version=1.0.1 # Date -Date=2016-03-01 +Date=2016-05-15 # Title (required) Title=An NBSVM implementation capable of multiclass (one-vs-all) classification. @@ -27,7 +27,7 @@ License=GPL 3.0 Description=This package contains a Java implementation of the NBSVM algorithm which was first presented as a binary classifier in "Baselines and Bigrams: Simple, Good Sentiment and Topic Classification," Sida Wang, Christopher D. Manning, in Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (ACL 2012), pp. 90-94, Jeju Island, South Korea (2012). This version extends the original algorithm to also support multiclass (one-vs-all) classification. The code relies on the LibLINEAR library and its Weka wrapper class. See the webpage for more information. # Package URL for obtaining the package archive (required) -PackageURL=https://github.com/vukbatanovic/NBSVM-Weka/releases/download/v1.0.0/NBSVM-Weka_1.0.0.zip +PackageURL=https://github.com/vukbatanovic/NBSVM-Weka/releases/download/v1.0.1/NBSVM-Weka_1.0.1.zip # URL for further information URL=https://github.com/vukbatanovic/NBSVM-Weka/ @@ -36,4 +36,4 @@ URL=https://github.com/vukbatanovic/NBSVM-Weka/ Related=LibLINEAR # Dependencies -Depends=weka (>=3.7.12), LibLINEAR (>=1.9.5) +Depends=weka (>=3.8), LibLINEAR (>=1.9.8) diff --git a/README.md b/README.md index 9189191..7d7ccb8 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ However, for the sake of consistency, the numbering of options used in LibLINEAR ## Installation NBSVM-Weka can be installed as an unofficial plug-in module within Weka. -To do so, download the [NBSVM-Weka package](https://github.com/vukbatanovic/NBSVM-Weka/releases/download/v1.0.0/NBSVM-Weka_1.0.0.zip). -Open the Weka package manager (available in Weka >= 3.7) and use the "Unofficial - File/URL" option to select and install NBSVM-Weka. +To do so, download the [NBSVM-Weka package](https://github.com/vukbatanovic/NBSVM-Weka/releases/download/v1.0.1/NBSVM-Weka_1.0.1.zip). +Open the Weka package manager and use the "Unofficial - File/URL" option to select and install NBSVM-Weka. After restarting Weka, the list of available classifiers (within the functions category) will contain the NBSVM option. ## Usage @@ -25,7 +25,7 @@ Either way, the configuration options are very similar to the options of LibLINE One difference is that NBSVM-Weka is not compatible with Support Vector Regression and Crammer and Singer's multiclass classification algorithm, making those SVMTypes disabled. In addition, NBSVM-Weka allows the user to specify the Laplace smoothing parameter alpha (*default: 1.0*) and the interpolation parameter beta (*default: 0.25*). -These parameters can be set in the command line options as -L (for Laplace smoothing) and -I (for interpolation). +These parameters can be set in the command line options as -A (for Laplace smoothing) and -X (for interpolation). ## References If you wish to use the NBSVM classifier in your paper or project, please cite the original paper: @@ -34,7 +34,7 @@ If you wish to use the NBSVM classifier in your paper or project, please cite th This Weka package was introduced in the following paper: -**Reliable Baselines for Sentiment Analysis in Resource-Limited Languages: The Serbian Movie Review Dataset**, Vuk Batanović, Boško Nikolić, Milan Milosavljević, in Proceedings of the 10th International Conference on Language Resources and Evaluation (LREC 2016), Portorož, Slovenia. (2016) +**[Reliable Baselines for Sentiment Analysis in Resource-Limited Languages: The Serbian Movie Review Dataset](http://www.lrec-conf.org/proceedings/lrec2016/pdf/284_Paper.pdf)**, Vuk Batanović, Boško Nikolić, Milan Milosavljević, in Proceedings of the 10th International Conference on Language Resources and Evaluation (LREC 2016), pp. 2688-2696, Portorož, Slovenia (2016). ## Additional Documentation All methods contain extensive documentation and comments. diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html index 181ffc2..a05ee89 100644 --- a/doc/allclasses-frame.html +++ b/doc/allclasses-frame.html @@ -2,10 +2,10 @@ - + All Classes - + diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html index 0a35207..a54b515 100644 --- a/doc/allclasses-noframe.html +++ b/doc/allclasses-noframe.html @@ -2,10 +2,10 @@ - + All Classes - + diff --git a/doc/constant-values.html b/doc/constant-values.html index 0d66e0e..1696c42 100644 --- a/doc/constant-values.html +++ b/doc/constant-values.html @@ -2,10 +2,10 @@ - + Constant Field Values - + @@ -122,7 +122,7 @@

weka.classifiers.*

public static final java.lang.String REVISION -"1.0.0" +"1.0.1" diff --git a/doc/de/bwaldvogel/liblinear/LibLINEAR_ModelModifier.html b/doc/de/bwaldvogel/liblinear/LibLINEAR_ModelModifier.html index c203ee6..2162ac0 100644 --- a/doc/de/bwaldvogel/liblinear/LibLINEAR_ModelModifier.html +++ b/doc/de/bwaldvogel/liblinear/LibLINEAR_ModelModifier.html @@ -2,10 +2,10 @@ - + LibLINEAR_ModelModifier - + @@ -124,7 +124,7 @@

Class LibLINEAR_ModelMod
Author:
Vuk Batanović
See Also:
-
"Reliable Baselines for Sentiment Analysis in Resource-Limited Languages: The Serbian Movie Review Dataset", Vuk Batanović, Boško Nikolić, Milan Milosavljević, in Proceedings of the 10th International Conference on Language Resources and Evaluation (LREC 2016), Portorož, Slovenia. (2016) +
Reliable Baselines for Sentiment Analysis in Resource-Limited Languages: The Serbian Movie Review Dataset, Vuk Batanović, Boško Nikolić, Milan Milosavljević, in Proceedings of the 10th International Conference on Language Resources and Evaluation (LREC 2016), pp. 2688-2696, Portorož, Slovenia (2016).
https://github.com/vukbatanovic/NBSVM-Weka
, diff --git a/doc/de/bwaldvogel/liblinear/class-use/LibLINEAR_ModelModifier.html b/doc/de/bwaldvogel/liblinear/class-use/LibLINEAR_ModelModifier.html index 3e76371..5a8f2fe 100644 --- a/doc/de/bwaldvogel/liblinear/class-use/LibLINEAR_ModelModifier.html +++ b/doc/de/bwaldvogel/liblinear/class-use/LibLINEAR_ModelModifier.html @@ -2,10 +2,10 @@ - + Uses of Class de.bwaldvogel.liblinear.LibLINEAR_ModelModifier - + diff --git a/doc/de/bwaldvogel/liblinear/package-frame.html b/doc/de/bwaldvogel/liblinear/package-frame.html index a6b4ac5..1b7f7cd 100644 --- a/doc/de/bwaldvogel/liblinear/package-frame.html +++ b/doc/de/bwaldvogel/liblinear/package-frame.html @@ -2,10 +2,10 @@ - + de.bwaldvogel.liblinear - + diff --git a/doc/de/bwaldvogel/liblinear/package-summary.html b/doc/de/bwaldvogel/liblinear/package-summary.html index 05bf93d..6a49699 100644 --- a/doc/de/bwaldvogel/liblinear/package-summary.html +++ b/doc/de/bwaldvogel/liblinear/package-summary.html @@ -2,10 +2,10 @@ - + de.bwaldvogel.liblinear - + diff --git a/doc/de/bwaldvogel/liblinear/package-tree.html b/doc/de/bwaldvogel/liblinear/package-tree.html index 2c14cb3..4bbb42d 100644 --- a/doc/de/bwaldvogel/liblinear/package-tree.html +++ b/doc/de/bwaldvogel/liblinear/package-tree.html @@ -2,10 +2,10 @@ - + de.bwaldvogel.liblinear Class Hierarchy - + diff --git a/doc/de/bwaldvogel/liblinear/package-use.html b/doc/de/bwaldvogel/liblinear/package-use.html index dc6f8e8..13f393f 100644 --- a/doc/de/bwaldvogel/liblinear/package-use.html +++ b/doc/de/bwaldvogel/liblinear/package-use.html @@ -2,10 +2,10 @@ - + Uses of Package de.bwaldvogel.liblinear - + diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html index d0e3fd3..bcfd75d 100644 --- a/doc/deprecated-list.html +++ b/doc/deprecated-list.html @@ -2,10 +2,10 @@ - + Deprecated List - + diff --git a/doc/help-doc.html b/doc/help-doc.html index 0e06979..86f80c7 100644 --- a/doc/help-doc.html +++ b/doc/help-doc.html @@ -2,10 +2,10 @@ - + API Help - + diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html index d44e064..38c77d7 100644 --- a/doc/index-files/index-1.html +++ b/doc/index-files/index-1.html @@ -2,10 +2,10 @@ - + A-Index - + diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html index 35a52ff..7c4efae 100644 --- a/doc/index-files/index-10.html +++ b/doc/index-files/index-10.html @@ -2,10 +2,10 @@ - + R-Index - + diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html index e590118..ced0882 100644 --- a/doc/index-files/index-11.html +++ b/doc/index-files/index-11.html @@ -2,10 +2,10 @@ - + S-Index - + diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html index 4fe1cfc..5ae9b30 100644 --- a/doc/index-files/index-12.html +++ b/doc/index-files/index-12.html @@ -2,10 +2,10 @@ - + T-Index - + diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html index 345db9c..785bdd0 100644 --- a/doc/index-files/index-13.html +++ b/doc/index-files/index-13.html @@ -2,10 +2,10 @@ - + W-Index - + diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html index 5ec0d3e..3ac7e33 100644 --- a/doc/index-files/index-2.html +++ b/doc/index-files/index-2.html @@ -2,10 +2,10 @@ - + B-Index - + diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html index bde5e0f..582b1ed 100644 --- a/doc/index-files/index-3.html +++ b/doc/index-files/index-3.html @@ -2,10 +2,10 @@ - + C-Index - + diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html index 9df4715..8fa94fd 100644 --- a/doc/index-files/index-4.html +++ b/doc/index-files/index-4.html @@ -2,10 +2,10 @@ - + D-Index - + diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html index d7579f5..60208ad 100644 --- a/doc/index-files/index-5.html +++ b/doc/index-files/index-5.html @@ -2,10 +2,10 @@ - + G-Index - + diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html index 929bfff..ec2bf97 100644 --- a/doc/index-files/index-6.html +++ b/doc/index-files/index-6.html @@ -2,10 +2,10 @@ - + I-Index - + diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html index de55a09..9c7d303 100644 --- a/doc/index-files/index-7.html +++ b/doc/index-files/index-7.html @@ -2,10 +2,10 @@ - + L-Index - + diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html index 6519866..08bc932 100644 --- a/doc/index-files/index-8.html +++ b/doc/index-files/index-8.html @@ -2,10 +2,10 @@ - + M-Index - + diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html index 7a8cbbf..dc8cb5b 100644 --- a/doc/index-files/index-9.html +++ b/doc/index-files/index-9.html @@ -2,10 +2,10 @@ - + N-Index - + diff --git a/doc/index.html b/doc/index.html index a9f294e..dcf4002 100644 --- a/doc/index.html +++ b/doc/index.html @@ -2,7 +2,7 @@ - + Generated Documentation (Untitled) diff --git a/doc/overview-summary.html b/doc/overview-summary.html index 46deb82..28386da 100644 --- a/doc/overview-summary.html +++ b/doc/overview-summary.html @@ -2,10 +2,10 @@ - + Overview - + diff --git a/doc/overview-tree.html b/doc/overview-tree.html index 14cada2..fd40ff5 100644 --- a/doc/overview-tree.html +++ b/doc/overview-tree.html @@ -2,10 +2,10 @@ - + Class Hierarchy - + @@ -83,7 +83,7 @@

Class Hierarchy

diff --git a/doc/weka/classifiers/functions/NBSVM.html b/doc/weka/classifiers/functions/NBSVM.html index 4f86e60..8dacf26 100644 --- a/doc/weka/classifiers/functions/NBSVM.html +++ b/doc/weka/classifiers/functions/NBSVM.html @@ -2,10 +2,10 @@ - + NBSVM - + @@ -120,7 +120,7 @@

Class NBSVM

  • All Implemented Interfaces:
    -
    java.io.Serializable, java.lang.Cloneable, weka.classifiers.Classifier, weka.core.BatchPredictor, weka.core.CapabilitiesHandler, weka.core.CapabilitiesIgnorer, weka.core.OptionHandler, weka.core.RevisionHandler, weka.core.TechnicalInformationHandler
    +
    java.io.Serializable, java.lang.Cloneable, weka.classifiers.Classifier, weka.core.BatchPredictor, weka.core.CapabilitiesHandler, weka.core.CapabilitiesIgnorer, weka.core.CommandlineRunnable, weka.core.OptionHandler, weka.core.RevisionHandler, weka.core.TechnicalInformationHandler


    @@ -128,7 +128,7 @@

    Class NBSVM

    extends weka.classifiers.functions.LibLINEAR
    An NBSVM implementation capable of multiclass (one-vs-all) classification. It relies on the LibLINEAR library and its Weka wrapper class.

    - Sida Wang, Christopher D. Manning: Baselines and Bigrams: Simple, Good Sentiment and Topic Classification, in Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (ACL 2012), pp. 90–94, Jeju Island, South Korea. (2012) URL: nlp.stanford.edu/pubs/sidaw12_simple_sentiment.pdf + Sida Wang, Christopher D. Manning: Baselines and Bigrams: Simple, Good Sentiment and Topic Classification, in Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (ACL 2012), pp. 90–94, Jeju Island, South Korea (2012). URL: nlp.stanford.edu/pubs/sidaw12_simple_sentiment.pdf

    @@ -167,6 +167,12 @@

    Class NBSVM

     -Z
       Turn on normalization of input data (default: off)
    +
    + -I <int>
    +  The maximum number of iterations to perform.
    +  (default 1000)
    + 
    +
     -P
       Use probability estimation (default: off)
      currently for L2-regularized logistic regression only! 
    @@ -181,10 +187,10 @@

    Class NBSVM

     -B <double>
       Add Bias term with the given value if >= 0; if < 0, no bias term added (default: 1)
    -
     -L <double>
    + 
     -A <double>
       Set the value of the Laplace smoothing parameter alpha (default: 1.0)
    -
     -I <double>
    + 
     -X <double>
       Set the value of the interpolation parameter beta (default: 0.25)
     -D
    @@ -194,11 +200,11 @@ 

    Class NBSVM

    Version:
    -
    1.0.0
    +
    1.0.1
    Author:
    Vuk Batanović
    See Also:
    -
    "Reliable Baselines for Sentiment Analysis in Resource-Limited Languages: The Serbian Movie Review Dataset", Vuk Batanović, Boško Nikolić, Milan Milosavljević, in Proceedings of the 10th International Conference on Language Resources and Evaluation (LREC 2016), Portorož, Slovenia. (2016) +
    Reliable Baselines for Sentiment Analysis in Resource-Limited Languages: The Serbian Movie Review Dataset, Vuk Batanović, Boško Nikolić, Milan Milosavljević, in Proceedings of the 10th International Conference on Language Resources and Evaluation (LREC 2016), pp. 2688-2696, Portorož, Slovenia (2016).
    https://github.com/vukbatanovic/NBSVM-Weka
    , @@ -281,14 +287,14 @@

    Field Summary

    Fields inherited from class weka.classifiers.functions.LibLINEAR

    -DEFAULT_SOLVER, m_Bias, m_Cost, m_eps, m_Filter, m_Model, m_NominalToBinary, m_Normalize, m_ProbabilityEstimates, m_ReplaceMissingValues, m_SolverType, m_Weight, m_WeightLabel
  • +DEFAULT_SOLVER, m_Bias, m_Cost, m_Counts, m_eps, m_epsilon, m_Filter, m_Header, m_MaxIts, m_Model, m_NominalToBinary, m_Normalize, m_ProbabilityEstimates, m_ReplaceMissingValues, m_SolverType, m_Weight, m_WeightLabel, m_x0, m_x1
    • Fields inherited from class weka.classifiers.AbstractClassifier

      -m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT
    • +BATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT
    @@ -458,14 +464,14 @@

    Method Summary

    Methods inherited from class weka.classifiers.functions.LibLINEAR

    -biasTipText, costTipText, epsTipText, getBias, getCapabilities, getCost, getEps, getModel, getNormalize, getParameters, getProbabilityEstimates, getProblem, getSolverType, getWeights, instanceToArray, main, normalizeTipText, probabilityEstimatesTipText, setBias, setCost, setEps, setNormalize, setProbabilityEstimates, setSolverType, setWeights, SVMTypeTipText, weightsTipText +biasTipText, costTipText, epsilonParameterTipText, epsTipText, getBias, getCapabilities, getCost, getEps, getEpsilonParameter, getMaximumNumberOfIterations, getModel, getNormalize, getParameters, getProbabilityEstimates, getProblem, getSolverType, getWeights, instanceToArray, main, maximumNumberOfIterationsTipText, normalizeTipText, probabilityEstimatesTipText, setBias, setCost, setEps, setEpsilonParameter, setMaximumNumberOfIterations, setNormalize, setProbabilityEstimates, setSolverType, setWeights, SVMTypeTipText, weightsTipText
    • Methods inherited from class weka.classifiers.AbstractClassifier

      -batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
    • +batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces