EnglishFrenchSpanish

OnWorks favicon

sb_dbexpimp - Online in the Cloud

Run sb_dbexpimp in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command sb_dbexpimp that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


sb_dbexpimp.py - Bayes database export/import

DESCRIPTION


This utility has the primary function of exporting and importing a spambayes database
into/from a CSV file. This is useful in a number of scenarios.

Platform portability of database - CSV files can be exported and imported across
platforms (Windows and Linux, for example).

Database implementation changes - databases can survive database implementation
upgrades or new database implementations. For example, if a dbm implementation
changes between python x.y and python x.y+1...

Database reorganization - an export followed by an import reorgs an existing
database, <theoretically> improving performance, at least in some database
implementations.

Database sharing - it is possible to distribute particular databases for research
purposes, database sharing purposes, or for new users to have a 'seed' database to
start with.

Database merging - multiple databases can be merged into one quite easily by
specifying -m on an import. This will add the two database nham and nspams
together and for wordinfo conflicts, will add spamcount and hamcount together.

Usage:
sb_dbexpimp [options]

options:

-e : export

-i : import

-f: FN : flat file to export to or import from -p: FN : name of pickled database
file to use -d: FN : name of dbm database file to use -m : merge import into an
existing database file. This is

meaningful only for import. If omitted, a new database file will be created. If
specified, the imported wordinfo will be merged into an existing database. Run
dbExpImp -h for more information.

-o: section:option:value :

set [section, option] in the options database to value

-h : help

If neither -p nor -d is specified, then the values in your configuration file (or failing
that, the defaults) will be used. In this way, you may convert to and from storage
formats other than pickle and dbm.

Export pickled mybayes.db into mybayes.db.export as a CSV file

sb_dbexpimp -e -p mybayes.db -f mybayes.db.export

Import mybayes.db.export into a new DBM mybayes.db

sb_dbexpimp -i -d mybayes.db -f mybayes.db.export

Convert a bayes database from pickle to DBM

sb_dbexpimp -e -p abayes.db -f abayes.export sb_dbexpimp -i -d abayes.db -f
abayes.export

Create a new DBM database (newbayes.db) from two

DBM databases (abayes.db, bbayes.db) sb_dbexpimp -e -d abayes.db -f abayes.export
sb_dbexpimp -e -d bbayes.db -f bbayes.export sb_dbexpimp -i -d newbayes.db -f
abayes.export sb_dbexpimp -i -m -d newbayes.db -f bbayes.export

Use sb_dbexpimp online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    GenX
    GenX
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 2
    pspp4windows
    pspp4windows
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 3
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • 4
    eSpeak: speech synthesis
    eSpeak: speech synthesis
    Text to Speech engine for English and
    many other languages. Compact size with
    clear but artificial pronunciation.
    Available as a command-line program with
    many ...
    Download eSpeak: speech synthesis
  • 5
    Sky Chart / Cartes du Ciel
    Sky Chart / Cartes du Ciel
    SkyChart is a software to draw chart of
    the night sky for the amateur astronomer
    from a bunch of stars and nebulae
    catalogs. See main web page for full
    download...
    Download Sky Chart / Cartes du Ciel
  • 6
    GSmartControl
    GSmartControl
    GSmartControl is a graphical user
    interface for smartctl. It allows you to
    inspect the hard disk and solid-state
    drive SMART data to determine its
    health, as w...
    Download GSmartControl
  • More »

Linux commands

  • 1
    abc2abc
    abc2abc
    abc2abc - a simple abc
    checker/re-formatter/transposer ...
    Run abc2abc
  • 2
    abc2ly
    abc2ly
    abc2ly - manual page for abc2ly
    (LilyPond) 2.18.2 ...
    Run abc2ly
  • 3
    coqmktop
    coqmktop
    coqmktop - The Coq Proof Assistant
    user-tactics linker ...
    Run coqmktop
  • 4
    coqtop
    coqtop
    coqtop - The Coq Proof Assistant
    toplevel system ...
    Run coqtop
  • 5
    g.copygrass
    g.copygrass
    g.copy - Copies available data files in
    the current mapset search path to the
    user�s current mapset. KEYWORDS:
    general, map management ...
    Run g.copygrass
  • 6
    g.dirsepsgrass
    g.dirsepsgrass
    g.dirseps - Internal GRASS utility for
    converting directory separator
    characters. Converts any directory
    separator characters in the input string
    to or from na...
    Run g.dirsepsgrass
  • More »

Ad