For Developers
============
You can also see [Cython](https://github.com/starlangsoftware/Util-Cy), [Java](https://github.com/starlangsoftware/Util), [C++](https://github.com/starlangsoftware/Util-CPP), [C](https://github.com/starlangsoftware/Util-C), [Swift](https://github.com/starlangsoftware/Util-Swift), [Js](https://github.com/starlangsoftware/Util-Js), or [C#](https://github.com/starlangsoftware/Util-CS) repository.
## Requirements
* [Python 3.7 or higher](#python)
* [Git](#git)
### Python
To check if you have a compatible version of Python installed, use the following command:
python -V
You can find the latest version of Python [here](https://www.python.org/downloads/).
### Git
Install the [latest version of Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
## Pip Install
pip3 install NlpToolkit-Util
## Download Code
In order to work on code, create a fork from GitHub page.
Use Git for cloning the code to your local or below line for Ubuntu:
git clone <your-fork-git-link>
A directory called Util will be created. Or you can use below link for exploring the code:
git clone https://github.com/starlangsoftware/Util-Py.git
## Open project with Pycharm IDE
Steps for opening the cloned project:
* Start IDE
* Select **File | Open** from main menu
* Choose `Util-PY` file
* Select open as project option
* Couple of seconds, dependencies will be downloaded.
Detailed Description
============
+ [Interval](#interval)
+ [Subset](#subset)
+ [SubsetFromList](#subsetfromlist)
+ [Permutation](#permutation)
## Interval
Aralık veri yapısını tutmak için Interval sınıfı
a = Interval()
1 ve 4 aralığı eklemek için
a.add(1, 4)
i. aralığın başını getirmek için (yukarıdaki örnekteki 1 gibi)
getFirst(self, index: int) -> int
i. aralığın sonunu getirmek için (yukarıdaki örnekteki 4 gibi)
getLast(self, index: int) -> int
## Subset
Altküme tanımlamak ve tüm altkümelere ulaşmak için Subset ve SubsetFromList sınıfları
Subset veri yapısını tanımlamak için
Subset(self, rangeStart: int, rangeEnd: int, elementCount: int)
Burada elemenCount elemanlı, elemanları rangeStart ile rangeEnd arasında değerler alabilen
tüm altkümeleri gezen bir yapıdan bahsediyoruz. Örneğin
Subset(1, 4, 2), bize iki elemanlı elemanlarını 1 ile 4 arasından gelen tüm alt kümeleri
seçmek için kullanılan bir constructor'dır. Tüm altkümeleri elde etmek için
a = Subset(1, 4, 2);
subset = a.get()
while a.next():
subset = a.get()
....
Burada subset sırasıyla {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4} altkümelerini gezer.
## SubsetFromList
Altküme tanımlamak ve tüm altkümelere ulaşmak için Subset ve SubsetFromList sınıfları
SubsetFromList veri yapısını kullanmak için
SubsetFromList(self, _list: list, elementCount: int)
Burada elementCount elemanlı, elemanları list listesinden çekilen değerler olan ve tüm
altkümeleri gezen bir yapıdan bahsediyoruz. Örneğin
SubsetFromList([1, 2, 3, 4], 3), bize üç elemanlı elemanlarını [1, 2, 3, 4] listesinden
seçen ve tüm alt kümeleri gezmekte kullanılan bir constructor'dır. Tüm altkümeleri elde
etmek için
a = SubsetFromList([1, 2, 3, 4], 3)
subset = a.get()
while a.next():
subset = a.get()
....
Burada SubsetFromList sırasıyla {1, 2, 3}, {1, 2, 4}, {1, 3, 4}, {2, 3, 4} altkümelerini
gezer.
## Permutation
Permütasyon tanımlamak ve tüm permütasyonlara ulaşmak için Permutation sınıfı
Permutation(self, n: int)
Burada 0 ile n - 1 arasındaki değerlerin tüm olası n'li permütasyonlarını gezen bir
yapıdan bahsediyoruz. Örneğin
Permutation(5), bize değerleri 0 ile 4 arasında olan tüm 5'li permütasyonları gezmekte
kullanılan bir constructor'dır. Tüm permütasyonları elde etmek için
a = Permutation(5)
permutation = a.get()
while a.next():
permutation = a.get();
...
Burada Permutation sırasıyla {0, 1, 2, 3, 4}, {0, 1, 2, 4, 3} gibi permütasyonları gezer.
Raw data
{
"_id": null,
"home_page": "https://github.com/StarlangSoftware/Util-Py",
"name": "NlpToolkit-Util",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "olcaytaner",
"author_email": "olcay.yildiz@ozyegin.edu.tr",
"download_url": "https://files.pythonhosted.org/packages/e1/a8/8f20e398727868c4e2d31bd0e2c834f1a81299025e4e489c283d4c783028/NlpToolkit-Util-1.0.11.tar.gz",
"platform": null,
"description": "For Developers\n============\nYou can also see [Cython](https://github.com/starlangsoftware/Util-Cy), [Java](https://github.com/starlangsoftware/Util), [C++](https://github.com/starlangsoftware/Util-CPP), [C](https://github.com/starlangsoftware/Util-C), [Swift](https://github.com/starlangsoftware/Util-Swift), [Js](https://github.com/starlangsoftware/Util-Js), or [C#](https://github.com/starlangsoftware/Util-CS) repository.\n\n## Requirements\n\n* [Python 3.7 or higher](#python)\n* [Git](#git)\n\n### Python \n\nTo check if you have a compatible version of Python installed, use the following command:\n\n python -V\n \nYou can find the latest version of Python [here](https://www.python.org/downloads/).\n\n### Git\n\nInstall the [latest version of Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).\n\n## Pip Install\n\n\tpip3 install NlpToolkit-Util\n\t\n## Download Code\n\nIn order to work on code, create a fork from GitHub page. \nUse Git for cloning the code to your local or below line for Ubuntu:\n\n\tgit clone <your-fork-git-link>\n\nA directory called Util will be created. Or you can use below link for exploring the code:\n\n\tgit clone https://github.com/starlangsoftware/Util-Py.git\n\n## Open project with Pycharm IDE\n\nSteps for opening the cloned project:\n\n* Start IDE\n* Select **File | Open** from main menu\n* Choose `Util-PY` file\n* Select open as project option\n* Couple of seconds, dependencies will be downloaded. \n\nDetailed Description\n============\n\n+ [Interval](#interval)\n+ [Subset](#subset)\n+ [SubsetFromList](#subsetfromlist)\n+ [Permutation](#permutation)\n\n## Interval \n\nAral\u0131k veri yap\u0131s\u0131n\u0131 tutmak i\u00e7in Interval s\u0131n\u0131f\u0131\n\n\ta = Interval()\n\n1 ve 4 aral\u0131\u011f\u0131 eklemek i\u00e7in\n\n\ta.add(1, 4)\n\ni. aral\u0131\u011f\u0131n ba\u015f\u0131n\u0131 getirmek i\u00e7in (yukar\u0131daki \u00f6rnekteki 1 gibi)\n\n\tgetFirst(self, index: int) -> int\n\ni. aral\u0131\u011f\u0131n sonunu getirmek i\u00e7in (yukar\u0131daki \u00f6rnekteki 4 gibi)\n\n\tgetLast(self, index: int) -> int\n\n## Subset \n\nAltk\u00fcme tan\u0131mlamak ve t\u00fcm altk\u00fcmelere ula\u015fmak i\u00e7in Subset ve SubsetFromList s\u0131n\u0131flar\u0131\n\nSubset veri yap\u0131s\u0131n\u0131 tan\u0131mlamak i\u00e7in\n\n\tSubset(self, rangeStart: int, rangeEnd: int, elementCount: int)\n\nBurada elemenCount elemanl\u0131, elemanlar\u0131 rangeStart ile rangeEnd aras\u0131nda de\u011ferler alabilen\nt\u00fcm altk\u00fcmeleri gezen bir yap\u0131dan bahsediyoruz. \u00d6rne\u011fin\n\nSubset(1, 4, 2), bize iki elemanl\u0131 elemanlar\u0131n\u0131 1 ile 4 aras\u0131ndan gelen t\u00fcm alt k\u00fcmeleri \nse\u00e7mek i\u00e7in kullan\u0131lan bir constructor'd\u0131r. T\u00fcm altk\u00fcmeleri elde etmek i\u00e7in\n\n\ta = Subset(1, 4, 2);\n\tsubset = a.get()\n\twhile a.next():\n\t\tsubset = a.get()\n\t\t....\n\nBurada subset s\u0131ras\u0131yla {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4} altk\u00fcmelerini gezer. \n\n## SubsetFromList \n\nAltk\u00fcme tan\u0131mlamak ve t\u00fcm altk\u00fcmelere ula\u015fmak i\u00e7in Subset ve SubsetFromList s\u0131n\u0131flar\u0131\n\nSubsetFromList veri yap\u0131s\u0131n\u0131 kullanmak i\u00e7in\n\n\tSubsetFromList(self, _list: list, elementCount: int)\n\nBurada elementCount elemanl\u0131, elemanlar\u0131 list listesinden \u00e7ekilen de\u011ferler olan ve t\u00fcm \naltk\u00fcmeleri gezen bir yap\u0131dan bahsediyoruz. \u00d6rne\u011fin\n\nSubsetFromList([1, 2, 3, 4], 3), bize \u00fc\u00e7 elemanl\u0131 elemanlar\u0131n\u0131 [1, 2, 3, 4] listesinden \nse\u00e7en ve t\u00fcm alt k\u00fcmeleri gezmekte kullan\u0131lan bir constructor'd\u0131r. T\u00fcm altk\u00fcmeleri elde \netmek i\u00e7in\n\n\ta = SubsetFromList([1, 2, 3, 4], 3)\n\tsubset = a.get()\n\twhile a.next():\n\t\tsubset = a.get()\n\t\t....\n\nBurada SubsetFromList s\u0131ras\u0131yla {1, 2, 3}, {1, 2, 4}, {1, 3, 4}, {2, 3, 4} altk\u00fcmelerini \ngezer. \n\n## Permutation\n\nPerm\u00fctasyon tan\u0131mlamak ve t\u00fcm perm\u00fctasyonlara ula\u015fmak i\u00e7in Permutation s\u0131n\u0131f\u0131\n\n\tPermutation(self, n: int)\n\nBurada 0 ile n - 1 aras\u0131ndaki de\u011ferlerin t\u00fcm olas\u0131 n'li perm\u00fctasyonlar\u0131n\u0131 gezen bir \nyap\u0131dan bahsediyoruz. \u00d6rne\u011fin\n\nPermutation(5), bize de\u011ferleri 0 ile 4 aras\u0131nda olan t\u00fcm 5'li perm\u00fctasyonlar\u0131 gezmekte \nkullan\u0131lan bir constructor'd\u0131r. T\u00fcm perm\u00fctasyonlar\u0131 elde etmek i\u00e7in\n\n\ta = Permutation(5)\n\tpermutation = a.get()\n\twhile a.next():\n\t\tpermutation = a.get();\n\t\t...\n\nBurada Permutation s\u0131ras\u0131yla {0, 1, 2, 3, 4}, {0, 1, 2, 4, 3} gibi perm\u00fctasyonlar\u0131 gezer.",
"bugtrack_url": null,
"license": null,
"summary": "Simple Utils",
"version": "1.0.11",
"project_urls": {
"Homepage": "https://github.com/StarlangSoftware/Util-Py"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e1a88f20e398727868c4e2d31bd0e2c834f1a81299025e4e489c283d4c783028",
"md5": "6162dfcb8d718d93b4e5716704f320fd",
"sha256": "57f34b035080e2010bd2f5fc0b2ec89ffde5fcef44b09e6de0783248b38a5f32"
},
"downloads": -1,
"filename": "NlpToolkit-Util-1.0.11.tar.gz",
"has_sig": false,
"md5_digest": "6162dfcb8d718d93b4e5716704f320fd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 17266,
"upload_time": "2024-08-23T10:57:45",
"upload_time_iso_8601": "2024-08-23T10:57:45.705769Z",
"url": "https://files.pythonhosted.org/packages/e1/a8/8f20e398727868c4e2d31bd0e2c834f1a81299025e4e489c283d4c783028/NlpToolkit-Util-1.0.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-23 10:57:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "StarlangSoftware",
"github_project": "Util-Py",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "nlptoolkit-util"
}