Skip to content

Commit

Permalink
gettin pkg ready
Browse files Browse the repository at this point in the history
  • Loading branch information
drizk1 committed Oct 9, 2023
1 parent 88e19b5 commit a51b78c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/TidierText.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module TidierText

using MacroTools
using StatsBase
using Languages
using DataFrames
using Reexport


include("docstrings.jl")


Expand Down
16 changes: 8 additions & 8 deletions src/docstrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@ Creates character shingles of size `n` from the text in `input_col` of `df`, out
# Examples
```jldoctest
julia> df = DataFrame(
text = [
"The fox runs.",
"The sun rises."], doc = [1, 2]);
julia> df = DataFrame(
text = [
"The fox runs.",
"The sun rises."], doc = [1, 2]);
julia> @unnest_character_shingles(df, term, text, 10, to_lower = false, strip_non_alphanum = true)
julia> @unnest_character_shingles(df, term, text, 10, to_lower = false, strip_non_alphanum = true)
7×2 DataFrame
Row │ doc term
│ Int64 String
Expand All @@ -279,7 +279,7 @@ julia> @unnest_character_shingles(df, term, text, 10, to_lower = false, strip_n
6 │ 2 esunrise
7 │ 2 sunrises
julia> @unnest_character_shingles(df, term, text, 10, to_lower = true, strip_non_alphanum = false)
julia> @unnest_character_shingles(df, term, text, 10, to_lower = true, strip_non_alphanum = false)
9×2 DataFrame
Row │ doc term
│ Int64 String
Expand Down Expand Up @@ -314,12 +314,12 @@ Splits the text in `input_col` of `df` into separate characters, outputting the
# Examples
```jldoctest
julia> julia> df = DataFrame(
julia> df = DataFrame(
text = [
"The quick.",
"Nice."], doc = [1, 2]);
julia> @unnest_characters(df, term, text, to_lower = false)
julia> @unnest_characters(df, term, text, to_lower = false)
Row │ doc term
│ Int64 Char
─────┼─────────────
Expand Down

0 comments on commit a51b78c

Please sign in to comment.