Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
Farse news IR project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9831029
Farse news IR project
Commits
bc700933
Commit
bc700933
authored
May 23, 2022
by
Haj Rezvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimized the functions.
parent
51d4a6fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
main.py
main.py
+10
-5
No files found.
main.py
View file @
bc700933
...
...
@@ -24,11 +24,16 @@ if __name__ == '__main__':
print
(
"بسم الله الرحمن الرحیم"
)
thread
=
threading
.
Thread
(
target
=
stop_word
())
thread
.
run
()
# split_document.file_open()
split_document
.
file_open_test
()
split_document
.
file_open
()
# Main Splitter for all of news.
# split_document.file_open_test() # Splitter for test dataset.
files
=
__file_finder
()
os
.
chdir
(
".."
)
# tokenizer.get_file(files)
tokenizer
.
get_file_test
(
files
)
os
.
chdir
(
".."
)
tokenizer
.
get_file
(
files
)
# Main tokenizer.
# tokenizer.get_file_test(files) # Tokenizer in test dataset.
index_maker
.
index
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment