Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 8eed65f

Browse files
author
Cipher
committed
Now a pip package
1 parent 227911f commit 8eed65f

File tree

9 files changed

+168
-1
lines changed

9 files changed

+168
-1
lines changed

Janex.egg-info/PKG-INFO

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
Metadata-Version: 2.1
2+
Name: Janex
3+
Version: 0.0.2b0
4+
Home-page: https://github.com/Cipher58
5+
Author: Cipher58
6+
Author-email: cipher58public@gmail.com
7+
License: Lily 1.0
8+
Classifier: Programming Language :: Python :: 3
9+
Classifier: Operating System :: OS Independent
10+
Description-Content-Type: text/markdown
11+
License-File: LICENSE
12+
13+
# Janex
14+
A free open-source framework which can be used to build Machine Learning tools, LLMs, and Natural Language Processing scripts with full simplicity.
15+
16+
<h2> What is the purpose of Janex? </h2>
17+
18+
Monopolistic companies are confining their Artificial Intelligence research to themselves, and capitalising on it. Even companies that swore to open source their software (OpenAI) went back on their morals, with the releases of GPT-3+, as did other powerful businesses.
19+
20+
These businesses go on to sell their research to the Government, and sell access to it to the public. As such, my aim is to create a framework that you can use to easily construct your own language models, and other machine learning algorithms, as I believe this power should not be held firmly in the hands of corrupt rich politicians and advantaged capitalists. (It will take a while before it reaches a practical level)
21+
22+
Released under the **new** Free Lily License 1.0, Janex will improve and become a useful tool for users to conduct their own research in the potential of Artifical Intelligence.
23+
24+
<h3> How to use </h3>
25+
26+
<h5> Adding to your project </h5>
27+
28+
Firstly, clone the git repository to the local directory of your project.
29+
30+
```
31+
cd /path/to/your/project/directory
32+
33+
gh repo clone Cipher58/Janex
34+
```
35+
36+
Secondly, import the Janex toolkit into your code by adding this line
37+
38+
```
39+
from Janex.Janex import *
40+
```
41+
42+
<h4>Using Janex in your code</h4>
43+
44+
<h5>Create an instance</h5>
45+
46+
Before anything else, you need to create an instance of the IntentMatcher class.
47+
48+
```
49+
intents_file_path = "intents.json"
50+
51+
matcher = IntentMatcher(intents_file_path)
52+
```
53+
54+
<h5>Tokenizing:</h5>
55+
56+
To utilise the tokenizer feature, here is an example of how it can be used.
57+
58+
```
59+
input_string = "Hello! What is your name?"
60+
61+
words = matcher.Tokenize(input_string)
62+
63+
print(words)
64+
```
65+
66+
<h5>Intent classifying:</h5>
67+
68+
To compare the input with the patterns from your intents.json storage file, you have to declare the intents file path.
69+
70+
```
71+
intents_file_path = "intents.json"
72+
73+
intent_class = matcher.patterncompare(input_string, intents_file_path)
74+
75+
print(intent_class)
76+
```
77+
78+
<h5>Response similarity:</h5>
79+
80+
Sometimes a list of responses in a class can become varied in terms of context, and so in order to get the best possible response, we can use the 'responsecompare' function to compare the input string with your list of responses.
81+
82+
```
83+
BestResponse = matcher.responsecompare(input_string, intents_file_path, intent_class)
84+
85+
print(BestResponse)
86+
```
87+
88+
<h5>Using Transformers:</h5>
89+
90+
I am still currently learning about complex mathematical Machine Learning algorithms, so the numpy-based transformers included in this project are still in development, and may not always be useful or stable for a while. If you would like to use them for whatever, here's an example.
91+
92+
```
93+
output = matcher.Transform(input_string)
94+
print(output)
95+
```
96+
97+
<h3> Functionality </h3>
98+
99+
<h4>Version 0.0.2-beta</h4>
100+
101+
- Word tokenizer ✓
102+
- Intent classifier ✓
103+
- Word Stemmer ✓
104+
- Support for Darwin, Unix-like and Windows ✓
105+
- Simple text transformer ✓

Janex.egg-info/SOURCES.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
LICENSE
2+
README.md
3+
setup.py
4+
Janex.egg-info/PKG-INFO
5+
Janex.egg-info/SOURCES.txt
6+
Janex.egg-info/dependency_links.txt
7+
Janex.egg-info/requires.txt
8+
Janex.egg-info/top_level.txt

Janex.egg-info/dependency_links.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

Janex.egg-info/requires.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy
2+
torch

Janex.egg-info/top_level.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gh repo clone Cipher58/Janex
2424
Secondly, import the Janex toolkit into your code by adding this line
2525

2626
```
27-
from Janex.Janex import *
27+
from Janex import *
2828
```
2929

3030
<h4>Using Janex in your code</h4>

Setup.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import setuptools
2+
3+
with open("README.md", "r") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
# Here is the module name.
8+
name="Janex",
9+
10+
# version of the module
11+
version="0.0.2-beta",
12+
13+
# Name of Author
14+
author="Cipher58",
15+
16+
# your Email address
17+
author_email="cipher58public@gmail.com",
18+
19+
# #Small Description about module
20+
# description="adding number",
21+
22+
# long_description=long_description,
23+
24+
# Specifying that we are using markdown file for description
25+
long_description=long_description,
26+
long_description_content_type="text/markdown",
27+
28+
# Any link to reach this module, ***if*** you have any webpage or github profile
29+
url="https://github.com/Cipher58",
30+
31+
packages=setuptools.find_packages(),
32+
33+
34+
#if module has dependencies i.e. if your package rely on other package at pypi.org
35+
# then you must add there, in order to download every requirement of package
36+
37+
install_requires=[
38+
"numpy",
39+
"torch",
40+
],
41+
42+
43+
license="Lily 1.0",
44+
45+
# classifiers like program is suitable for python3, just leave as it is.
46+
classifiers=[
47+
"Programming Language :: Python :: 3",
48+
"Operating System :: OS Independent",
49+
],
50+
)

dist/Janex-0.0.2-py3-none-any.whl

3.84 KB
Binary file not shown.

dist/Janex-0.0.2b0-py3-none-any.whl

3.86 KB
Binary file not shown.

0 commit comments

Comments
 (0)