alexkueck commited on
Commit
8445624
1 Parent(s): a6dcc7a

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +11 -0
utils.py CHANGED
@@ -548,6 +548,17 @@ class State:
548
  shared_state = State()
549
 
550
 
 
 
 
 
 
 
 
 
 
 
 
551
 
552
 
553
  def is_stop_word_or_prefix(s: str, stop_words: list) -> bool:
 
548
  shared_state = State()
549
 
550
 
551
+ #Für die relevanten Dokumente - damit sie passend zum Dictionary die Attribute haben
552
+ class Document:
553
+ def __init__(self, content, title, page, path):
554
+ self.page_content = content
555
+ self.metadata = {
556
+ "title": title,
557
+ "page": page,
558
+ "path": path
559
+ }
560
+
561
+
562
 
563
 
564
  def is_stop_word_or_prefix(s: str, stop_words: list) -> bool: