-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix format of the output * fix github action * symbolize the key of the output * add how to use analyze array in README * bump version
- Loading branch information
1 parent
4b3b5dd
commit 3e56751
Showing
12 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ name: Ruby Gem | |
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
sentiment-ai (0.0.4.beta) | ||
sentiment-ai (0.0.5.beta) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
en: | ||
prompt: | ||
sentence: "Analyze the sentiment of the sentence given below.\n%{sentence}\nThe output should be in the format- Semtiment: Value" | ||
array: "Analyze the sentiment of all sentences given below.\n%{array}\nThe output should be in the format- [{\"Sentence\" => \"Value\"}]" | ||
array: "Analyze the sentiment of all sentences given below.\n%{array}\nThe output should be in the format- [{sentence => value, sentiment => value}]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ja: | ||
prompt: | ||
sentence: "テキストを中立、否定的、または肯定的に分類してください。 テキスト:%{sentence}\n結果の形式- 所感:値" | ||
array: "テキスト配列を中立、否定的、または肯定的に分類してください。 \n%{array}\n結果の形式- [{\"Câu\" => \"Gía trị bằng tiếng Anh\"}]" | ||
array: "テキスト配列を中立、否定的、または肯定的に分類してください。 \n%{array}\n結果の形式- [{sentence => value, sentiment => value}]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
vi: | ||
prompt: | ||
sentence: "Phân tích sắc thái của câu dưới đây là tích cực, tiêu cực hay trung lập.\n%{sentence}\nKết quả trả về dưới dạng- Sắc thái: Gía trị" | ||
array: "Phân tích sắc thái của các câu dưới đây là tích cực, tiêu cực hay trung lập.\n%{array}\nKết quả trả về dưới dạng- [{\"Câu\" => \"Gía trị bằng tiếng Anh\"}]" | ||
array: "Phân tích sắc thái của các câu dưới đây là tích cực, tiêu cực hay trung lập.\n%{array}\nKết quả trả về dưới dạng- [{sentence => value, sentiment => value}]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module SentimentAI | ||
VERSION = '0.0.4.beta' | ||
VERSION = '0.0.5.beta' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ Gem::Specification.new do |spec| | |
spec.description = 'A gem that use Generative AI for data sentiment analysis' | ||
spec.authors = ['Quan Hoang'] | ||
spec.email = '[email protected]' | ||
spec.files = Dir['lib/sentiment_ai.rb', 'lib/sentiment_ai/*.rb', 'lib/sentiment_ai/core/*.rb', 'config/locales/*.yml'] | ||
spec.files = Dir['lib/sentiment_ai.rb', 'lib/sentiment_ai/*.rb', 'lib/sentiment_ai/core/*.rb', | ||
'config/locales/*.yml'] | ||
spec.homepage = 'https://rubygems.org/gems/sentiment-ai' | ||
spec.license = 'MIT' | ||
spec.required_ruby_version = '>= 3.1.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters