SeoyeonPark1223 commited on
Commit
e64092b
·
verified ·
1 Parent(s): 00bf499

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +53 -0
README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - google/gemma-2-2b
4
+ ---
5
+
6
+ # Slang Generator
7
+
8
+ This is a slang generator model developed using Keras. The model can create Gen-Z slang terms based on the provided context!
9
+
10
+ ## Model Overview
11
+
12
+ The slang generator is designed to produce catchy and relevant slang terms that resonate with modern youth culture. Users can provide specific contexts to generate slang that feels natural in casual conversation.
13
+
14
+ ## Example Usage
15
+
16
+ ### Initial Setup
17
+
18
+ To start generating slang terms, define a tag that outlines the instructions for the model:
19
+
20
+ ```python
21
+ tag = (
22
+ "Given the context below, create a new slang term. "
23
+ "The slang should be catchy, easy to use, and relevant to modern youth culture. "
24
+ "Make sure it's something that would feel natural in casual conversation:\n\n"
25
+ )
26
+ ```
27
+
28
+ ### Define Specific Context
29
+ Set the context for the slang generation. For example:
30
+ ```python
31
+ context = "You're hanging out with friends at a new restaurant, trying out some unique fusion dishes."
32
+ ```
33
+
34
+ ### Define Conditions
35
+ Specify additional conditions for the output. For example, you can request the definition and examples:
36
+ ```python
37
+ condition = "You should suggest new slang and its definition, also give some examples for clarification. Example should be long and also precise."
38
+ ```
39
+
40
+ ### Final Prompt Construction
41
+
42
+ Construct the final prompt by combining the tag, context, and condition:
43
+ ```python
44
+ prompt = template.format(
45
+ instruction=tag + context + condition,
46
+ response=""
47
+ )
48
+ ```
49
+
50
+ ### Conclusion
51
+ With this slang generator, you can easily create new and engaging slang terms tailored to various contexts. Feel free to modify the context and conditions to explore different slang outputs!
52
+
53
+