Home

Awesome

Datumbox Framework Zoo: Pre-trained models

Datumbox

This project contains pre-trained Machine Learning models which can be used with the Datumbox Machine Learning Framework v0.8.2 (Build 20200805).

Copyright & License

Copyright (c) 2013-2020 Vasilis Vryniotis.

Licensed under the Apache License, Version 2.0.

Pre-trained Models

The project contains the binary files of all the text classification models which are available via the Datumbox API:

Important Notes:

How to use

  1. Download/clone this project locally.
  2. Open your datumbox.configuration.properties file and make sure you use the InMemory engine by default:
    configuration.storageConfiguration=com.datumbox.framework.storage.inmemory.InMemoryConfiguration
    
  3. Open your datumbox.inmemoryconfiguration.properties file and update the directory:
    inMemoryConfiguration.directory=/path/to/datumbox-framework-zoo
    
  4. Within your project initialize the classifiers using their name:
    Configuration configuration = Configuration.getConfiguration();
    
    TextClassifier textClassifier = MLBuilder.load(TextClassifier.class, "SentimentAnalysis", configuration);
    System.out.println(textClassifier.predict("Datumbox is amazing!").getYPredicted());
    

Note that it is also possible to skip steps 2 & 3 and instead programmatically update the configuration object before initializing the classifier:

Configuration configuration = Configuration.getConfiguration();
InMemoryConfiguration storageConfiguration = new InMemoryConfiguration();
storageConfiguration.setDirectory("/path/to/datumbox-framework-zoo");
configuration.setStorageConfiguration(storageConfiguration);

Useful Links