Skip to content

Commit b44e9fe

Browse files
committed
update comments
Signed-off-by: Tim Schopf <[email protected]>
1 parent 8ddff25 commit b44e9fe

File tree

2 files changed

+7
-26
lines changed

2 files changed

+7
-26
lines changed

keyphrase_vectorizers/keyphrase_vectorizer_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def _get_pos_keyphrases(self, document_list: List[str], stop_words: Union[str, L
428428
else:
429429
pos_tuples = custom_pos_tagger(raw_documents=document_list)
430430

431-
# get the original documents after they were processed by spaCy
431+
# get the original documents after they were processed by a tokenizer and a POS tagger
432432
processed_docs = []
433433
for tup in pos_tuples:
434434
token = tup[0]

tests/utils.py

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -58,31 +58,12 @@ def get_english_test_keyphrases():
5858

5959

6060
def get_english_first_doc_test_keyphrases():
61-
sorted_english_first_doc_test_keyphrases = ['algorithm',
62-
'class labels',
63-
'example',
64-
'function',
65-
'inductive bias',
66-
'input',
67-
'input object',
68-
'machine',
69-
'new examples',
70-
'optimal scenario',
71-
'output',
72-
'output pairs',
73-
'output value',
74-
'pair',
75-
'set',
76-
'supervised learning',
77-
'supervised learning algorithm',
78-
'supervisory signal',
79-
'task',
80-
'training data',
81-
'training examples',
82-
'unseen instances',
83-
'unseen situations',
84-
'vector',
85-
'way']
61+
sorted_english_first_doc_test_keyphrases = ['algorithm', 'class labels', 'example', 'function', 'inductive bias',
62+
'input', 'input object', 'machine', 'new examples', 'optimal scenario',
63+
'output', 'output pairs', 'output value', 'pair', 'set',
64+
'supervised learning', 'supervised learning algorithm',
65+
'supervisory signal', 'task', 'training data', 'training examples',
66+
'unseen instances', 'unseen situations', 'vector', 'way']
8667

8768
return sorted_english_first_doc_test_keyphrases
8869

0 commit comments

Comments
 (0)