Skip to content

Remove conceptnet #1103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions docs/api/corpus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,6 @@ pythainlp.corpus.th_en_translit.get_transliteration_dict
.. autofunction:: pythainlp.corpus.th_en_translit.get_transliteration_dict
:noindex:

ConceptNet
----------

ConceptNet is an open, multilingual knowledge graph used for various natural language understanding tasks. For more information, refer to the `ConceptNet documentation <https://github.com/commonsense/conceptnet5/wiki/API>`_.

pythainlp.corpus.conceptnet.edges
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: pythainlp.corpus.conceptnet.edges
:noindex:

TNC (Thai National Corpus)
---
Expand Down
115 changes: 0 additions & 115 deletions pythainlp/corpus/conceptnet.py

This file was deleted.

4 changes: 0 additions & 4 deletions tests/core/test_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from requests import Response

from pythainlp.corpus import (
conceptnet,
countries,
download,
find_synonyms,
Expand Down Expand Up @@ -39,9 +38,6 @@


class CorpusTestCase(unittest.TestCase):
def test_conceptnet(self):
self.assertIsNotNone(conceptnet.edges("รัก"))

def test_corpus(self):
self.assertIsInstance(thai_negations(), frozenset)
self.assertGreater(len(thai_negations()), 0)
Expand Down
Loading