Changeset 162:ca1529c62df9 for classifier/doc/storage.txt
- Timestamp:
- 08/21/07 19:12:16 (11 months ago)
- Files:
-
- 1 modified
-
classifier/doc/storage.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
classifier/doc/storage.txt
r157 r162 10 10 >>> import settings 11 11 >>> settings.SQLURI = 'sqlite:///%s' % db_file 12 >>> import os 13 >>> if os.path.exists(db_file): 14 ... os.remove(db_file) 15 12 16 13 17 It works with languages, words, categories, and words within categories:: … … 18 22 bayesian data:: 19 23 20 >>> storage = SQLStorage('tarek') 21 24 >>> storage = SQLStorage('tester') 22 25 23 26 Next we can store languages, since each word is in a given language::
