{"id":15288205,"url":"https://github.com/r-m-n/sklearn-deltatfidf","last_synced_at":"2025-09-10T12:42:32.398Z","repository":{"id":57468093,"uuid":"81716109","full_name":"r-m-n/sklearn-deltatfidf","owner":"r-m-n","description":"DeltaTfidfVectorizer for scikit-learn","archived":false,"fork":false,"pushed_at":"2020-12-19T07:34:10.000Z","size":12,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T17:12:54.923Z","etag":null,"topics":["delta-tf-idf","python","scikit-learn","sentiment-analysis","sklearn","tf-idf"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-m-n.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-12T09:39:55.000Z","updated_at":"2022-01-25T06:15:20.000Z","dependencies_parsed_at":"2022-09-19T08:51:49.514Z","dependency_job_id":null,"html_url":"https://github.com/r-m-n/sklearn-deltatfidf","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-m-n%2Fsklearn-deltatfidf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-m-n%2Fsklearn-deltatfidf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-m-n%2Fsklearn-deltatfidf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-m-n%2Fsklearn-deltatfidf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-m-n","download_url":"https://codeload.github.com/r-m-n/sklearn-deltatfidf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248680240,"owners_count":21144628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["delta-tf-idf","python","scikit-learn","sentiment-analysis","sklearn","tf-idf"],"created_at":"2024-09-30T15:44:41.850Z","updated_at":"2025-04-13T07:38:53.195Z","avatar_url":"https://github.com/r-m-n.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=================\nsklearn-deltatfidf\n=================\n\n|pypi| |downloads|\n\nDeltaTfidfVectorizer for scikit-learn.\n\nThe Delta TFIDF is suggested in a article_ by Justin Martineau and Tim Finin, and usually associated with sentiment classification or polarity detection of text.\n\nUsage\n-----\n\n.. code:: python\n\n  from sklearn_deltatfidf import DeltaTfidfVectorizer\n\n  v = DeltaTfidfVectorizer()\n  data = ['word1 word2', 'word2', 'word2 word3', 'word4']\n  labels = [1, -1, -1, 1]\n  v.fit_transform(data, labels)\n\n  # you can use it in pipelines as usual\n  pipe = Pipeline([\n        ('vectorizer', DeltaTfidfVectorizer()),\n        ('clf', svm.LinearSVC())\n    ])\n  pipe.fit(data, labels)\n\nInstallation\n------------\n\nWith ``pip``:\n\n.. code-block:: console\n\n    $ pip install sklearn-deltatfidf\n\nFrom source:\n\n.. code-block:: console\n\n    $ git clone https://github.com/r-m-n/sklearn-deltatfidf.git\n    $ cd sklearn-deltatfidf\n    $ python setup.py install\n\n.. _article: http://ebiquity.umbc.edu/_file_directory_/papers/446.pdf\n\n.. |pypi| image:: https://img.shields.io/pypi/v/sklearn-deltatfidf\n    :alt: PyPI\n\n.. |downloads| image:: https://img.shields.io/pypi/dm/sklearn-deltatfidf\n    :alt: PyPI - Downloads\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-m-n%2Fsklearn-deltatfidf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-m-n%2Fsklearn-deltatfidf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-m-n%2Fsklearn-deltatfidf/lists"}