pydomaintextfeature

Generate text feature of domain for machine learn


Keywords
pydomaintextfeature
License
MIT
Install
pip install pydomaintextfeature==0.1.1

Documentation

Overview

This lib generate text feature sparse vector for a given domain

Usage

import pydomaintextfeature 
if __name__ == '__main__':
    while True:
        iput = raw_input()
        f = Ppydomaintextfeature.yDomainTextFeature({'ngram':3})
        print f.range()
        print f.feature(iput)