New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add primitives from nlp_primitives that do not require additional external libraries #2328
Changes from all commits
8fa3f12
3a04741
0f81f3c
dfa1cc1
23828ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# flake8: noqa | ||
from featuretools.primitives.standard.natural_language_primitives.count_string import ( | ||
CountString, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.mean_characters_per_word import ( | ||
MeanCharactersPerWord, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.median_word_length import ( | ||
MedianWordLength, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.num_unique_separators import ( | ||
NumUniqueSeparators, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.number_of_common_words import ( | ||
NumberOfCommonWords, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.number_of_hashtags import ( | ||
NumberOfHashtags, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.number_of_mentions import ( | ||
NumberOfMentions, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.number_of_unique_words import ( | ||
NumberOfUniqueWords, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.number_of_words_in_quotes import ( | ||
NumberOfWordsInQuotes, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.punctuation_count import ( | ||
PunctuationCount, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.title_word_count import ( | ||
TitleWordCount, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.total_word_length import ( | ||
TotalWordLength, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.upper_case_count import ( | ||
UpperCaseCount, | ||
) | ||
from featuretools.primitives.standard.natural_language_primitives.whitespace_count import ( | ||
WhitespaceCount, | ||
) | ||
Comment on lines
+1
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A couple of minor things since we are going into the restructure directory route, to reduce the lines here we can just use relative imports, it's a bit cleaner. I would also move all of this code to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I'll clean this up in the PR for issue #2179 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the comment below you would just be able to do:
from featuretools.primitives.standard.natural_language_primitives import *