Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-066
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
2022-066
2022-066
Commits
2ecf839d
Commit
2ecf839d
authored
Nov 14, 2022
by
De Silva K.C.C.C
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keyword detection
parent
96671cee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Indexing/question_generator.py
Indexing/question_generator.py
+1
-1
No files found.
Indexing/question_generator.py
View file @
2ecf839d
...
@@ -71,7 +71,7 @@ def get_nouns_multipartite(content):
...
@@ -71,7 +71,7 @@ def get_nouns_multipartite(content):
extractor
.
load_document
(
input
=
content
)
extractor
.
load_document
(
input
=
content
)
# not contain punctuation marks or stopwords as candidates.
# not contain punctuation marks or stopwords as candidates.
pos
=
{
'PROPN'
,
'NOUN'
}
pos
=
{
'PROPN'
,
'NOUN'
}
# pos = {'PROPN','NOUN'}
stoplist
=
list
(
string
.
punctuation
)
stoplist
=
list
(
string
.
punctuation
)
stoplist
+=
[
'-lrb-'
,
'-rrb-'
,
'-lcb-'
,
'-rcb-'
,
'-lsb-'
,
'-rsb-'
]
stoplist
+=
[
'-lrb-'
,
'-rrb-'
,
'-lcb-'
,
'-rcb-'
,
'-lsb-'
,
'-rsb-'
]
stoplist
+=
stopwords
.
words
(
'english'
)
stoplist
+=
stopwords
.
words
(
'english'
)
...
...
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