メむンコンテンツぞスキップ
芋出し画像

ChatGPTの苊手克服文字数、単語数指定で文章を芁玄する方法

    論文再投皿の際に単語数制限に合わせっお単語を削るだけ削ったけどただ削り足りない
    抄録を孊䌚に投皿する際に文字数がオヌバヌしおしたったけどもうどこを削ればいいかわからない
    ずいうこずは無いでしょうか。
    ChatGPを䜿うず文章の芁玄をしおもらえたす。

    https://chat.openai.com/chat

    しかし、文字数、単語数の指定はなかなかChatGPTには困難なタスクででうたくいきたせん。本蚘事はそれを少しでも改善する方法です。逆にpragraph数やsentence数の指定であれば䞊手く行くこずが倚いようです。

    promptは以䞋です。芏定に合わせお単語数の数字を倉えおください。最埌に短瞮する文章を入れお䞋さい。ChatGPTは入力ず出力の合蚈が玄最倧4096トヌクンず蚀われおいたす日本語1文字で1〜3トヌクン、英語は1,500 words ~= 2048 tokens。長文を削る堎合は分割しおChatも新芏に立お盎しおください。

    2024.5.6 远蚘

    䞋蚘をCode Interpreterを䜿うだけで正確な文字数、Word数でいけるようになりたした。
    Code Interpretorを䜿う堎合は以䞋のGPTを立ち䞊げるか、GPT-4内で䜿甚する堎合は「Code Interpreter」を䜿っお」ず明瀺しおください。
    いずれの手法もChatGPTの課金ナヌザヌである必芁がありたす。

    日本語文字数指定

    入力文章(ここに文章入れる)
    ----
    Code Interpreterを䜿っお入力文章を指定された文字数の範囲内に芁玄しおください。
    芁玄された文章が文字数が範囲内に収たっおいない堎合には、文字を远加たたは削陀する凊理を繰り返したす。
    
    - 文字数の䞋限文字数の䞋限入力
    - 文字数の䞊限文字数の䞋限入力

    英語単語数指定

    Input text: (insert text here)
    ----
    Use Code Interpreter and summarize the input text within the specified word count range. 
    Repeat the process of adding or removing words if the word count does not fit within the range.
    
    Lower word limit: (enter lower word limit)
    Upper word limit: (enter upper word limit)
    

    2023.4.6远蚘
    日本語の文字数指定芁玄するバヌゞョンGPT4掚奚です

    ナヌザヌからの入力を受け取り、それを指定された文字数の範囲内に芁玄しおください。
    芁玄された文章の文字数の䞊限ず䞋限を指定できるようにし、文字数が範囲内に収たっおいない堎合には、文字を远加たたは削陀する凊理を繰り返したす。
    
    1. ナヌザヌから次の情報を入力しおもらいたす。
    - 入力する文章(ここに文章入れる)
    - 文字数の䞋限文字数の䞋限入力
    - 文字数の䞊限文字数の䞋限入力
    
    2. 文字数が指定された範囲内に収たるように文章を芁玄したす。
    
    3. 芁玄された文章の文字数が範囲内に収たっおいるか確認したす。
    
    4. 文字数が範囲内に収たっおいない堎合、以䞋の凊理を繰り返したす。
    - 文字数が䞊限を超えおいる堎合: 文章から䜙分な単語やフレヌズを削陀したす。
    - 文字数が䞋限を䞋回っおいる堎合: 蚀い換えたり、適切な単語やフレヌズを远加しお、文章を拡匵したす。
    
    5. 最終的な芁玄された文章を衚瀺し、ナヌザヌが満足するたで、文章を調敎したす

    英語の単語数を指定しお芁玄するバヌゞョンGPT3.5でも行けたすがGPT4の方が成瞟は良いかもしれたせん

    Accept input from the user and summarize it within the specified word count range. Allow the user to set the upper and lower limits of the word count, and repeat the process of adding or removing words if the word count does not fit within the range.
    
    1. Have the user input the following information:
    Input text: (insert text here)
    Lower word limit: (enter lower word limit)
    Upper word limit: (enter upper word limit)
    
    2. Summarize the text to fit within the specified word count range.
    
    3. Check if the summarized text’s word count falls within the specified range.
    
    4. If the word count does not fit within the range, repeat the following processes:
    - If the word count exceeds the upper limit: Remove extra words or phrases from the text.
    - If the word count is below the lower limit: Rephrase or add appropriate words or phrases to expand the text.
    
    5. Display the final summarized text, and adjust the text until the user is satisfied.

    孊術ずは離れたすがTwitter甚の文章の短瞮にも䜿えたす笑

    任意の文章を1ツむヌトに収めるように調敎するプロンプト、フォロワヌの方がもっず良いプロンプトを教えおくれたした

    めちゃ良い https://t.co/eDo4BcsIDg

    — KAJI | 梶谷健人 (@kajikent) April 5, 2023

    孊術的に圹に立぀promptは䞋蚘からどうぞ

    本蚘事のプロンプトは䞋蚘蚘事のやり方で䜜成しおいたす。耇雑なタスクを芁求する堎合にずおも有甚です。

    英文校正が必芁な時は䞋蚘の蚘事をがおすすめです。


    あなたぞのおすすめ