Skip to content
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

Analyze multiple texts #7

Merged
merged 16 commits into from
Aug 8, 2022
Merged

Analyze multiple texts #7

merged 16 commits into from
Aug 8, 2022

Conversation

kitsuyui
Copy link
Owner

@kitsuyui kitsuyui commented Aug 7, 2022

from template_analysis import analyze

result = analyze([
    "A dog is a good pet",
    "A cat is a good pet",
    "A cat is a pretty pet",
    "A bird is a great pet",
])

assert result.to_format_string() == "A {} is a {} pet"
assert result.args[0] == ["dog", "good"]
assert result.args[1] == ["cat", "good"]
assert result.args[2] == ["cat", "pretty"]
assert result.args[3] == ["bird", "great"]

@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2022

Codecov Report

Merging #7 (7879155) into main (bddf107) will increase coverage by 0.51%.
The diff coverage is 99.44%.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   98.93%   99.44%   +0.51%     
==========================================
  Files           1        4       +3     
  Lines          94      181      +87     
==========================================
+ Hits           93      180      +87     
  Misses          1        1              
Flag Coverage Δ
unittests 99.44% <99.44%> (+0.51%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
template_analysis/analyzer.py 98.95% <98.95%> (ø)
template_analysis/__init__.py 100.00% <100.00%> (+1.06%) ⬆️
template_analysis/symbol.py 100.00% <100.00%> (ø)
template_analysis/template.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@kitsuyui kitsuyui changed the title WIP: analyze three texts WIP: analyze multiple texts Aug 8, 2022
@kitsuyui kitsuyui changed the title WIP: analyze multiple texts Analyze multiple texts Aug 8, 2022
@kitsuyui kitsuyui merged commit 465c2d8 into main Aug 8, 2022
@kitsuyui kitsuyui deleted the three-texts branch August 8, 2022 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants