Harika22 commited on
Commit
a92793c
·
verified ·
1 Parent(s): fd420f1

Update pages/7_Advance_vectorization_techniques.py

Browse files
pages/7_Advance_vectorization_techniques.py CHANGED
@@ -509,16 +509,29 @@ elif file_type == "Fasttext":
509
  """,
510
  unsafe_allow_html=True,
511
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
512
 
513
- st.markodown('''
514
- - Example : d1 = apple is good for health
515
- - d2 = biryani is not good for health
516
- - Creates a table for context words, focus words
517
- - <ap , pp, pl, le> < is> - context words
518
- - <go , oo, od> - focus words
519
- - character 2- gram
520
- - It gives average 2-d vector representation of word
521
- ''')
522
  st.markdown(
523
  """
524
  <h3 style='color: #6A0572;'>Vocabulary</h3>
 
509
  """,
510
  unsafe_allow_html=True,
511
  )
512
+ st.markdown(
513
+ """
514
+ ## Example Sentences:
515
+ - **d1:** "apple is good for health"
516
+ - **d2:** "biryani is not good for health"
517
+
518
+ This application creates a table for **context words** and **focus words** using **character 2-grams**.
519
+ """
520
+ )
521
+
522
+ st.subheader("Character 2-Gram Table")
523
+
524
+ data = {
525
+ "Context Words": ["ap", "pp", "pl", "le", "is"],
526
+ "Focus Words": ["go", "oo", "od"]
527
+ }
528
+
529
+ st.markdown(
530
+ """
531
+ - This representation provides an **average 2D vector** for words.
532
+ """
533
+ )
534
 
 
 
 
 
 
 
 
 
 
535
  st.markdown(
536
  """
537
  <h3 style='color: #6A0572;'>Vocabulary</h3>