JPS62211770A - Sentence tone converter - Google Patents

Sentence tone converter

Info

Publication number
JPS62211770A
JPS62211770A JP61055669A JP5566986A JPS62211770A JP S62211770 A JPS62211770 A JP S62211770A JP 61055669 A JP61055669 A JP 61055669A JP 5566986 A JP5566986 A JP 5566986A JP S62211770 A JPS62211770 A JP S62211770A
Authority
JP
Japan
Prior art keywords
word
masu
desu
verb
storage means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP61055669A
Other languages
Japanese (ja)
Other versions
JPH0576657B2 (en
Inventor
Shunichi Fukushima
俊一 福島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP61055669A priority Critical patent/JPS62211770A/en
Publication of JPS62211770A publication Critical patent/JPS62211770A/en
Publication of JPH0576657B2 publication Critical patent/JPH0576657B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

PURPOSE:To convert automatically inputted sentences ending with 'desu' or 'masu' ('desu . masu' tone) to those ending with 'da' or 'dearu' ('da . dearu' tone) by using a dictionary function. CONSTITUTION:Japanese sentences of 'desu masu' tone are stored by an input sentence means 1. The inputted sentence of 'desu . masu' tone is divided into word strings by a word dictionary storage means 2, a grammatical dictionary storage means 3, and a word dividing means 4. After divided word strings are stored in a word string storage means 5, a 'desu' deleting means 6, a 'da' inserting means 7, a 'masu' deleting means 8, and a verb conjugating means 9 are started to convert them in accordance wtih conjugations of 'desu . masu' tone, and connection relations are corrected, thus converting them to a Japanese sentence of 'da . dearu' tone.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は「です−ます」調の日本語文を「だ・である」
調の日本語文に変換する語調変換装置に関する。
[Detailed description of the invention] [Industrial field of application] The present invention converts the Japanese sentence "desu-masu" into "da-desu".
The present invention relates to a tone conversion device for converting Japanese sentences into tone-toned Japanese sentences.

〔従来の技術〕[Conventional technology]

一般に、日本語文の語調は、「でず・まず」調と「だ・
である」調のいずれかに分けられる。例えば、「です・
まず」調の文は次のようなものである。
In general, the tones of Japanese sentences are ``dezu・mazu'' tone and ``da・mazu'' tone.
It can be divided into one of two types. For example, "Desu・
First, the sentence in the tone is as follows.

今日は雨が降っていますが、明日 はきつと晴れるでしよう。It's raining today, but tomorrow It's going to be bright and sunny.

この例文を「だ・である」調で書いた場合、次のように
なる。
If this example sentence were written in the ``da・deru'' tone, it would be as follows.

今日は雨か降っているが、明日は きっと晴れるだろう。It's raining today, but tomorrow I'm sure it will be sunny.

「です・まず」調の文は読み手に丁寧に語りかける文で
あり、「だ・である」調の文は簡潔に記述する文である
。このような印象の違いから、語調は文章の用途に応じ
て使い分けられている。商用文は「です・ます」調が多
く、論文などは「だ・である」調が大半である。従って
、文章を別な用途に用いようとした場合、語調を変える
必要が生ずることがある。
Sentences in the tone ``desu・mazu'' are sentences that address the reader in detail, while sentences in the tone ``da・deru'' are sentences that are concise and descriptive. Because of this difference in impression, tone is used differently depending on the purpose of the sentence. Most commercial texts are in the ``desu/masu'' tone, and most papers are in the ``da/deru'' tone. Therefore, when trying to use a sentence for a different purpose, it may be necessary to change the tone of the sentence.

近年、ワードプロセッサが普及し、電子化された文章が
作成、管理されるようになり、一つの文章を容易に様々
な用途に流用できるようになった。
In recent years, word processors have become widespread, and electronic texts have come to be created and managed, making it easier to use a single text for various purposes.

この際、文章の語調を変えて用いるケースも少なくない
In this case, there are many cases where the tone of the sentence is changed.

従来、「です・ます」調の文を「だ・である」調の文に
変換する場合は、ワードプロセ・・lすなどの文字列置
換機能を用いて「でず」を[だ1に置き換えることが考
えられるが、「ますJの入った文は直前の動詞の活用形
を変形する必要があり、文字列置換機能のみでは実現で
きない。従って、1です・ます」調め文を「だ・である
」調の文に変換するには、入間が一文ずつ書き直してゆ
かねばならなかった。
Conventionally, when converting a sentence in the tone of ``desu/masu'' to a sentence in the tone of ``da/deru'', use a string replacement function such as a word processor to replace ``dezu'' with [da1. However, the sentence containing "Masu J" requires changing the conjugated form of the verb immediately before it, and cannot be achieved using the string replacement function alone. In order to convert it into a sentence in the style of ``is'', Iruma had to rewrite it sentence by sentence.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来、ワードプロセッサなどにより電子fヒされた文章
が作成されているにもかかわらず、語調を書き換える作
業は上記のように人手で行うしがなく、文章を他の用途
に流用する妨げとなっているという問題点があった。
Conventionally, even though electronically edited sentences are created using word processors, etc., the task of rewriting the tone cannot be done manually as described above, which hinders the use of the sentences for other purposes. There was a problem.

本発明の目的は、「でず・ます」調の日本語文を自動的
に「だ・である」調の日本語文に変換する語調変換装置
を提供することにある。
An object of the present invention is to provide a tone conversion device that automatically converts a Japanese sentence in the tone "dezu/masu" into a Japanese sentence in the tone "da/deru".

〔問題点を解決するための手段〕[Means for solving problems]

本発明の装置は、入力された「でず・まず」調の日本語
文を記憶する入力文記憶手段と、日本語の単語を品詞と
ともに収納した単語辞書を記憶する単語辞書記憶手段と
、日本語の単語の接続可否を記述した文法辞書を記憶す
る文法辞書記憶手段と、前記単語辞書と前記文法辞書と
を検索することによって前記「でず・ます」調の日本語
文を単語列に分割する単語分割手段と、前記単語分割手
段により分割された単語列を記憶する単語列記憶手段と
、前記単語列記憶手段に記憶された単語列から助動詞「
です」を削除する「です」削除手段と、前記単語列記憶
手段における前記「でず」削除手段によって削除された
助動詞「です」の存在した位置に前記削除された助動詞
「です」と同一の活用形の助動詞「だ」を挿入する「だ
」挿入手段と、前記単語列記憶手段に記憶された単語列
から助動詞「まず」を削除する「ます」削除手段と、前
記単語辞書と前記文法辞書とを参照して前記単語列記憶
手段における前記「ます」削除手段によって削除された
助動詞「まず」の直前の位置の動詞を前記削除された助
動詞「ます」の直後の位置の単語に接続可能な活用形に
変形する動詞活用変形手段とを備で構成される。
The device of the present invention includes an input sentence storage means for storing an input Japanese sentence in the "dezu-mazu" style, a word dictionary storage means for storing a word dictionary storing Japanese words along with parts of speech, a grammar dictionary storage means for storing a grammar dictionary that describes whether or not words can be connected, and words for dividing the Japanese sentence in the "dezu-masu" style into word strings by searching the word dictionary and the grammar dictionary. a dividing means, a word string storage means for storing the word string divided by the word dividing means, and an auxiliary verb "" from the word string stored in the word string storage means.
``desu'' deletion means deletes ``desu'' and the same conjugation as the deleted auxiliary verb ``desu'' is placed in the position where the auxiliary verb ``desu'' deleted by the ``dezu'' deletion means in the word string storage means existed. ``da'' insertion means for inserting the auxiliary verb ``da'' in the form; ``masu'' deletion means for deleting the auxiliary verb ``Mazu'' from the word string stored in the word string storage means; the word dictionary and the grammar dictionary; conjugation that can connect the verb at the position immediately before the auxiliary verb "Mazu" deleted by the auxiliary verb "Mazu" in the word string storage means with reference to the word string storage means to the word at the position immediately after the deleted auxiliary verb "Masu". It consists of a verb conjugation transformation means that transforms into a form.

〔実施例〕〔Example〕

図面を用いて、本発明の実施例を詳細に説明する。 Embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の語調変換装置の一実施例の構成を示す
ブロック図である。各構成要素を説明する。
FIG. 1 is a block diagram showing the configuration of an embodiment of the tone conversion device of the present invention. Each component will be explained.

第1図において、lは入力文記憶手段であり、入力され
た「です・ます」調の日本語文を記憶する。ICメモリ
、磁気ディスク装置、磁気テープ装置などを用いること
ができる(後述の単語辞書記憶手段27文法辞書記憶手
段3.単語列記憶手段5なども同様に、ICメモリ、磁
気ディスク装置、磁気テープ装置などを用いて実現でき
る)。
In FIG. 1, l is an input sentence storage means, which stores the input Japanese sentence in the tone of "desu/masu". An IC memory, a magnetic disk device, a magnetic tape device, etc. can be used. ).

2は単語辞書記憶手段であり、日本語の単語を品詞とと
もに収容した単語辞書を記憶する。3は文法辞書記憶手
段であり、日本語の単語の接続可否を記述した文法辞書
を記憶する。4は単語分割手段であり、単語辞書と文法
辞書とを検索することによって、入力文記憶手段1に記
憶された[です・まず」調の日本語文を単語列に分割す
る。
Reference numeral 2 denotes a word dictionary storage means, which stores a word dictionary containing Japanese words together with their parts of speech. Reference numeral 3 denotes a grammar dictionary storage means, which stores a grammar dictionary that describes whether or not Japanese words can be connected. Reference numeral 4 denotes a word dividing means, which divides the Japanese sentence in the tone ``desu・mazu'' stored in the input sentence storage means 1 into word strings by searching a word dictionary and a grammar dictionary.

これらの手段2〜4は公知の技術を用いて実現できるも
のであり、例えば、文献[国語辞書の記憶と日本語文の
自動分割」 (長屋・達弁・山上・建部、情報処理19
巻6号514頁〜521頁。
These means 2 to 4 can be realized using known techniques, and for example, the literature [Japanese dictionary storage and automatic segmentation of Japanese sentences] (Nagaya, Tatsuben, Yamagami, Takebe, Information Processing 19)
Volume 6, pages 514-521.

1978)のように構成することができる。また、手段
2〜4は「です・ます」調の日本語文のみを対象とする
ものではなく、一般の日本語文に対して適用できるもの
である。
1978). Furthermore, means 2 to 4 are applicable not only to Japanese sentences in the style of "desu/masu" but also to general Japanese sentences.

5は単語列記憶手段であり、単語分割手段4により分割
された単語列を記憶する。少なくとも単語の表記と品詞
、単語の位置などに関する情報を持つ。なお、単語記憶
手段5の内容は、「です」削除手段6.「だ」挿入手段
7.「ます」削除手段8.動詞活用変形手段9が起動さ
れるに従って、これらの手段6,7.8および9によっ
て書き換えられる。
Reference numeral 5 denotes a word string storage means, which stores the word string divided by the word dividing means 4. It has information about at least the word notation, part of speech, word position, etc. The contents of the word storage means 5 are "desu" deletion means 6. ``Da'' insertion means 7. "Masu" deletion method 8. As the verb conjugation transformation means 9 is activated, it is rewritten by these means 6, 7, 8, and 9.

6は「です」削除手段であり、単語列記憶手段5に記憶
された単語列から助動詞「です」を削除する。「です、
1削除手段6の処理内容をより詳細に説明すると、「で
す」削除手段6は単語列記憶手段5の内容から、助動詞
1です」の未然形「でしマ」、連用形「でし」、終止形
「です」を検索し、見つかったならば、その助動詞「で
ず」を単語列記憶手段らの内容から削除する。このとき
、「です」削除手段6は、削除した助動詞[ですJの位
置と活用形に関する情報を1だ」挿入手段7へ出力する
6 is a "desu" deletion means, which deletes the auxiliary verb "desu" from the word string stored in the word string storage means 5. "is,
To explain in more detail the processing contents of the 1 deletion means 6, the ``desu'' deletion means 6 extracts from the contents of the word string storage means 5 the unnatural form ``deshima'', the conjunctive form ``deshi'', and the final form of the auxiliary verb 1 ``deshi''. The form ``desu'' is searched for, and if found, the auxiliary verb ``dezu'' is deleted from the contents of the word string storage means. At this time, the "desu" deletion means 6 outputs information regarding the position and conjugation of the deleted auxiliary verb "desu J" to the "1 da" insertion means 7.

7は「だ」挿入手段であり、「です」削除手段6から送
られCくる削除された「です」の位置と活用の情報に従
って、単語列記憶手段5における削除された「です」の
存在した位置に、削除された「です」の活用形と同一の
活用形の助動詞「だ」を挿入する。すなわち、「です」
削除手段6によって削除された「です」が未然形「でし
よ」でったならば助動詞「だ」の未然形「だろ」を、削
除された「でず」が連用形「でし」であったならば「だ
」の連用形「たつ」を、削除された「です」が終止形「
です」であったならば「だ」の終止形「だ」を、削除さ
れた「です」の存在した位置に挿入する。
7 is a ``da'' insertion means, and according to the information about the position and conjugation of the deleted ``desu'' sent from the ``desu'' deletion means 6, the existence of the deleted ``desu'' in the word string storage means 5 is determined. Insert the auxiliary verb ``da'' in the same conjugation as the deleted conjugation of ``desu.'' In other words, "desu"
If ``Desu'' deleted by deletion means 6 was the unnatural form ``Deshiyo'', then the unnatural form ``Dora'' of the auxiliary verb ``Da'' is changed, and the deleted ``Dezu'' is the conjunctive form ``Deshi''. The deleted form ``desu'' changes the conjunctive form ``tatsu'' of ``da'' to the final form ``tadara''.
If it is, the final form of ``da'' is inserted at the position where the deleted ``desu'' existed.

8は「ます」削除手段であり、単語列記憶手段5に記憶
された単語列から助動詞「ます」を削除する1、「ます
」削除手段8の処理内容をより詳細に説明すると、「ま
す」削除手段8は単語列記憶手段5の内容から、助動詞
「ます」の未然形「ませ」 1ましょ」、連用形「まし
」、終止形・連体形「ます」、仮定形「ますれ」、命令
形「まし」。
8 is a "masu" deletion means, which deletes the auxiliary verb "masu" from the word string stored in the word string storage means 5. To explain in more detail the processing contents of the auxiliary verb "masu" 8, "masu" is deleted from the word string stored in the word string storage means 5. The deletion means 8 selects from the contents of the word string storage means 5 the unnatural form of the auxiliary verb ``masu'', ``masho'', the adjunctive form ``mashi'', the final form/adjunctive form ``masu'', the hypothetical form ``masre'', and the imperative form. "Better".

「ませ−1を検索し、見つかったならば、その助動詞「
まず」を単語列記憶手段5の内容から削除する。このと
き、「ます」削除手段8は、削除した助動詞「ます」の
位置に関する情報を動詞活用変形手段9へ出力する。
``Search for Mase-1, and if it is found, the auxiliary verb ``
First, " is deleted from the contents of the word string storage means 5. At this time, the "masu" deletion means 8 outputs information regarding the position of the deleted auxiliary verb "masu" to the verb conjugation transformation means 9.

9は動詞活用変形手段であり、単語辞書記憶手段2に記
憶された単語辞書と文法辞書記憶手段3に記憶された文
法辞書とを参照して、「ます」削除手段8から送られて
くる削除した助動詞「ます」の位置に関する情報をもと
に、削除された「まず」の直前の位置の動詞(助動詞「
ます」の直前は動詞、しかも連用形に限定される)を、
削除された助動詞「ます」の直後の位置の単語(句読点
などの区切り記号も単語の一種であるとみなす)に接続
可能な活用形に変形する。
Reference numeral 9 denotes a verb conjugation transformation means, which refers to the word dictionary stored in the word dictionary storage means 2 and the grammar dictionary stored in the grammar dictionary storage means 3, and deletes information sent from the "masu" deletion means 8. Based on the information about the position of the auxiliary verb "masu" that was deleted, the verb in the position immediately before the deleted auxiliary verb "masu" (the auxiliary verb
The part immediately before "masu" is a verb, and is limited to the continuous form).
It is transformed into a conjugated form that can be connected to the word immediately after the deleted auxiliary verb "masu" (punctuation marks and other delimiters are also considered to be a type of word).

10は変換文出力手段であり、「です」削除手段6.「
だ」挿入手段7.「ます」削除手段8゜動詞活用変形手
段9によって書き換えられた単語列記憶手段5中の単語
列をもとに、「だ・である」調の文を出力する。
10 is a converted sentence output means, and a "desu" deletion means 6. "
Insertion means 7. ``Masu'' deletion means 8. Based on the word string in the word string storage means 5 rewritten by the verb conjugation transformation means 9, a sentence in the tone ``da・deru'' is output.

11は制御手段であり、上記の各手段1〜10の動詞を
制御する。コンピュータのCPUなどが用いられる。
Reference numeral 11 denotes a control means, which controls the verbs of each means 1 to 10 above. A computer CPU or the like is used.

次に、本実施例の動作を例を用いて説明する。Next, the operation of this embodiment will be explained using an example.

入力文記憶手段1には、次のような「です・ます」調の
文が記憶されているものとする。
It is assumed that the input sentence storage means 1 stores the following sentences in the tone of "desu/masu".

今日は雨が降っていますが、明日 はきっと晴れるでしょう。It's raining today, but tomorrow I'm sure it will be sunny.

また、第2図は単語辞書記憶手段2に格納されている単
語辞書20の一例、第3図は文法辞書記憶手段3に格納
されている文法辞書30の一例である。
2 shows an example of the word dictionary 20 stored in the word dictionary storage means 2, and FIG. 3 shows an example of the grammar dictionary 30 stored in the grammar dictionary storage means 3.

第2図において、200は単語の表記、201は単語の
品詞である。第2図の単語辞書20では、単語は表記2
00の文字コードの順に並べられている。入力された文
字列の部分文字列と一致する表記200を単語辞書20
中から検索することによって、入力された文字列から単
語の候補を検出することができる。さらに、検出された
単語の候補の品詞をもとに、文法辞書30を参照するこ
とによって、単語間の接続検定を行い、入力された文字
列を単語列に分割することができる。
In FIG. 2, 200 is the notation of the word, and 201 is the part of speech of the word. In the word dictionary 20 shown in FIG.
They are arranged in order of character code 00. The notation 200 that matches the substring of the input string is stored in the word dictionary 20.
By searching from within, word candidates can be detected from the input character string. Furthermore, by referring to the grammar dictionary 30 based on the part of speech of the detected word candidate, a connection test between words can be performed and the input character string can be divided into word strings.

第3図の文法辞書30は、2つの品詞間の接続可否を記
述したマトリックスであり、行は前にくる単語の品詞、
列は後にくる単語の品詞を表し、71−リックスの要素
は接続可否を1か0(1=接続可能、0=接続不可能)
で表している。
The grammar dictionary 30 in FIG. 3 is a matrix that describes the connectivity between two parts of speech, and the rows are the part of speech of the preceding word,
The column represents the part of speech of the word that comes after, and the 71-lix element indicates whether it can be connected to 1 or 0 (1 = connectable, 0 = not connectable).
It is expressed as

上記のような単語辞書20と文法辞書30とを参照する
ことによって、単語分割手段4は入力文記憶手段1に記
憶された文を単語列に分割し、その結果を単語列記憶手
段5へ出力する。この例では、次のような単語列が単語
列記憶手段5へ出力される。
By referring to the word dictionary 20 and grammar dictionary 30 as described above, the word division means 4 divides the sentence stored in the input sentence storage means 1 into word strings, and outputs the result to the word string storage means 5. do. In this example, the following word string is output to the word string storage means 5.

今日(名詞)は(係助詞「は」) 雨(名詞)か(格助詞「が」) 降(う行五段動詞語幹) つくう行五段活用語尾促音便形) て(接続助詞「て」) い(一段動詞連用形) ます(助動詞「まず」終止形) が(接続助詞「が」)、(読点) 明日(名詞)はく係助詞「は」) きっと(副詞)晴れ(一段動詞語幹) る(一段活用語尾連体形) でしよ(助動詞「です」未然形) うく助動詞「う」終止形) 。(句点) 次に、「でず」削除手段6が、これらの中から下記のよ
うな助動詞「ですjの活用形を検索する。
Today (noun) is (modifying particle ``ha'') Rain (noun) ka (case particle ``ga'') Fall (5-stage verb stem in U-line) Te (conjunctive particle ``TE'') ) I (one-stage verb continuous form) Masu (final form of the auxiliary verb "Mazu") ga (conjunctive particle "ga"), (comma) Tomorrow (noun) Haku conjunction particle "ha") Surely (adverb) Sunny (one-stage verb stem) ru (one-stage conjugated final adjunctive form) deshiyo (auxiliary verb ``desu'' unnatural form) uku auxiliary verb ``u'' final form). (Period) Next, the "dezu" deletion means 6 searches for the following conjugated form of the auxiliary verb "desuj" from among these.

でしよ(助動詞「です」未然形) でしく助動詞「です」連用形) です(助動詞「です」終止形) この例では、「でしよ」が見つかる。そこで、「です」
削除手段6は、単語列記憶手段5から「でしょ」を削除
し、その位置と活用形を「だ」挿入手段7へ出力する。
deshiyo (the auxiliary verb ``desu'' (unnatural form)) deshiku auxiliary verb ``desu'' (conjunctive form) desu (the auxiliary verb ``desu'' (final form)) In this example, ``deshiyo'' is found. So, "desu"
The deletion means 6 deletes "doshi" from the word string storage means 5, and outputs its position and inflection to the "da" insertion means 7.

・・・晴れ(一段動詞語幹) る(一段活用語尾連体形) *う(助動詞「う」終止形) 。(句点) ネ・・・「です」を削除した位置、未然形「だ」挿入手
段7は、「です」削除手段6から「でず」を削除した位
置と削除した「です」の活用形を受けて、その位置に同
一の活用形の「助動詞「だ」を挿入する。「です」削除
手段6から受けた活用形に従って挿入する助動詞「だ」
の活用形は、次の通りである。
...Hare (one-stage verb stem) Ru (one-stage conjugated final adjunctive form) *U (auxiliary verb "u" final form). (Period) Ne...The position where "desu" was deleted, the unnatural form "da" insertion means 7 is the position where "dezu" was deleted from the "desu" deletion means 6, and the conjugated form of "desu" that was deleted. Then, insert the same conjugated auxiliary verb 'da' in that position. “Desu” Auxiliary verb “da” inserted according to the conjugation form received from deletion means 6
The conjugations of are as follows.

未然形→だろ(助動詞「だ」未然形) 連用形→だっ(助動詞「だ」連用形) 終止形→だ (助動詞「だ」終止形) この例では、未然形「だろ」が挿入されることになり、
その結果、単語列記憶手段5の内容は、次のように書き
換えられる。
Unnatural form → dara (auxiliary verb “da”, unnatural form) Conjunctive form → da (auxiliary verb “da”, continuous form) Final form → da (auxiliary verb “da”, final form) In this example, the unnatural form “dora” will be inserted. ,
As a result, the contents of the word string storage means 5 are rewritten as follows.

・・・晴れ(一段動詞語幹) る(一段活用語尾連体形〉 だろ(助動詞「だ」未然形) う(助動詞「う」終止形〉。(句点) 続いて、「ます」削除手段8が、単語列記憶手段5の中
から下記のような助動詞「まず」の活用形を検索する。
...Hare (one-step verb stem) Ru (one-step conjugated adjunctive form) Dara (modal verb "da" unnatural form) U (auxiliary verb "u" final form). (Punctation) Next, "Masu" deletion means 8 The following conjugated form of the auxiliary verb "Mazu" is searched from the word string storage means 5.

ませ (助動詞「ます」未然形1) ましよ(助動詞「ます」未然形2) まし (助動詞「ます」連用形) ます (助動詞「ます」終止形〉 ます (助動詞「ます」連体形) ますれ(助動詞「ます」仮定形) まし (助動詞「まず」命令形1) ませ (助動詞「まず」命令形2) この例では、終止形「ます」が見つかる。そこで、1ま
すj削除手段8は、単語列記憶手段5から終止形「まず
」を削除し、その位置を動詞活用変形手段9ノ\出力す
る。
Mase (auxiliary verb “masu” unnatural form 1) Mashiyo (auxiliary verb “masu” unnatural form 2) Mashi (auxiliary verb “masu” conjunctive form) Masu (auxiliary verb “masu” final form) Masu (auxiliary verb “masu” conjunctive form) Masure ( Mashi (auxiliary verb "Mazu", imperative form 1) Mase (auxiliary verb "Mazu", imperative form 2) In this example, the final form "masu" is found.Therefore, 1 masuj deletion means 8 is used to delete the word The final form "Mazu" is deleted from the column storage means 5, and its position is outputted to the verb conjugation transformation means 9.

・・・い(一段動詞連用形) *か(接続助詞「が」) 、(読点)明日(名詞)・・・ *・・・「ます」を削除した位置 動詞活用変形手段9は、「まず」削除手段8から「まず
」を削除した位置を受けて、その直前の位置の動詞の活
用形を、その直後の単語に接続可能な形に変形する。こ
の例では、一段動詞「いる」の連用形[いJを接続助詞
1°が」に接続可能な活用形に変形する。この変形は、
文法辞書30と単語辞書20とを参照して行なわれる。
...i (one-step verb conjunctive form) *ka (conjunctive particle "ga"), (comma) tomorrow (noun)... *...Positive verb conjugation transformation means 9 that deletes "masu" is "Mazu" Upon receiving the position from which "Mazu" has been deleted from the deletion means 8, the conjugated form of the verb at the position immediately before that position is transformed into a form that can be connected to the word immediately following it. In this example, the first-stage verb ``Iru'' is transformed into a conjugated form that can be connected to the conjunctive form [iJ to the conjunctive particle 1° ga''. This transformation is
This is done with reference to the grammar dictionary 30 and word dictionary 20.

第2図の単語辞書20の例と第3図の文法辞書30の例
とを用いて、この変形を説明する。まず、第3図の文法
辞書30の一段動詞の対応する行と接続助詞「が」に対
応する例との交点に対応する要素のうち、1(=接続可
能)であるものを探す。
This modification will be explained using the example of the word dictionary 20 in FIG. 2 and the example of the grammar dictionary 30 in FIG. 3. First, among the elements corresponding to the intersection of the corresponding line of the one-stage verb in the grammar dictionary 30 of FIG. 3 and the example corresponding to the conjunctive particle "ga", an element that is 1 (= connectable) is searched.

その結果、行が一段活用語尾終止形で列が接続助詞「が
」である要素が1となっているので、接続助詞「が」に
接続可能な一段動詞の活用形は終止形であることがわか
る。次に、第2図の単語辞書20の品詞201を検索し
、一段動詞「いる」の終止形に対応する単語を探す。こ
の例では、一段動詞「いるjの語幹と一段活用語尾終止
形を探す。
As a result, there is 1 element where the row is the final conjugated form and the column is the conjunctive particle ``ga'', so the conjugated form of the 1-level verb that can be connected to the conjunctive particle ``ga'' is the final form. Recognize. Next, the part of speech 201 of the word dictionary 20 shown in FIG. 2 is searched to find a word corresponding to the final form of the single-stage verb "Iru". In this example, we will search for the stem and final form of the single-stage verb ``Iruj''.

そして、見付けられた、一段動詞「いる−1の語幹「い
」と一段活用語尾終止形する」とで、単語列記憶手段5
中の一段動詞連用形[い1を置き換える。その結果、単
語列記憶手段5の内容は次のように書き換えられる。
Then, the word string storage means 5 uses the found one-stage verb "I-1's stem 'i' and one-stage conjugation ending final form".
One-stage verb conjunctive form [replaces i1] in the middle. As a result, the contents of the word string storage means 5 are rewritten as follows.

・・・い(一段動詞語幹) る(一段活用語尾終止形) が(接続助詞「がJ) 、(読点)明日(名詞)・・・ 以上の処理が完了した時点で、単語列記憶手段5の内容
は次のようになっている。
...i (one-stage verb stem) ru (one-stage conjugated ending final form) ga (conjunctive particle "ga J"), (comma) tomorrow (noun)... When the above processing is completed, the word string storage means 5 The contents are as follows.

今日(名詞〉は(係助詞「は」) 雨(名詞〉が(格助詞「が」〉 降(う行五段動詞語幹) っ(う行五段活用語尾促音便形) て(接続助詞「て」〉 い(一段・動詞語幹) る(一段活用語尾終止形) が(接続助詞「が」)、(読点) 明日(名詞)は(係助詞「は」) きっと(副詞)晴れ(一段動詞語幹) る(一段活用語尾連体形〉 だろ(助動詞「だ」未然形) う(助動詞「う」終止形)。(句点) 最後に、変換文出力手段10はこの内容をもとに、次の
ような文を出力する。
Today (noun) (case particle "ha") Rain (noun) (case particle "ga") fall (U-line 5-stage verb stem) tsu (U-line 5-stage conjugation final consonant stool form) Te (conjunctive particle "te") ”〉 I (1st step, verb stem) Ru (1st step conjugated final form) ga (conjunctive particle “ga”), (comma) Tomorrow (noun) wa (conjunctive particle “ha”) Surely (adverb) Sunny (1st step verb stem ) ru (one-stage conjugated ending adjunctive form) dara (auxiliary verb "da" unnatural form) う (auxiliary verb "u" final form). Outputs a sentence.

今日は雨が降っているが、明日は きっと晴れるだろう。It's raining today, but tomorrow I'm sure it will be sunny.

以上で、「です・まず」調の入力文が「だ・である」調
の文に変換されて出力されたことになる。
As described above, the input sentence in the tone of ``desu・mazu'' has been converted into a sentence in the tone of ``da・deru'' and has been output.

なお、この例では、「です」削除手段6.「だ」挿入手
段7を、「ますj削除手段8.動詞活用変形手段9の先
に適用しているが、「ます」削除手段8.動詞活用変形
手段9を適用した後に「です」削除手段6.「だ」挿入
手段7を適用しても同様の結果が得られるのは明らかで
あり、本発明の語調変換装置では、その適用順序につい
ては制限を加えていない。
In this example, "desu" deletion means 6. The "da" insertion means 7 is applied beyond the "masu j deletion means 8.verb conjugation transformation means 9", but the "masu" deletion means 8. After applying the verb conjugation transformation means 9, "desu" deletion means 6. It is clear that similar results can be obtained even if the "da" insertion means 7 is applied, and the tone conversion device of the present invention does not impose any restrictions on the order in which it is applied.

また、−文を入力した場合の例を説明したが、「ですJ
・「ます」調の文章(複数の文)を一括して「だ・であ
る」調の文章に変換する場合も、同様の処理を行えば良
いことは明らかである。
Also, I explained an example when inputting a - sentence, but "desu J
・It is clear that similar processing can be performed when converting sentences (multiple sentences) in the tone of "masu" into sentences in the tone of "da・deru" all at once.

また、この実施例の語調変換装置に「だ・である」調の
文が入力された場合には、「です」削除手段6.「だ」
挿入手段7.「ます」削除手段8゜動詞活用変形手段9
により書き換えられることはなく、変換文出力手段10
からは入力された文と同一の「で・である」調の文が出
力されることになる。
Furthermore, when a sentence with the tone of "da/desu" is input to the tone conversion device of this embodiment, the "desu" deletion means 6. "is"
Insertion means7. "Masu" deletion means 8゜verb conjugation transformation means 9
The converted sentence output means 10 is not rewritten by
will output a sentence with the same ``de/desu'' tone as the input sentence.

〔発明の効果] 以上説明したように、本発明によれば、「です・ます」
調の日本語文から「だ・である」調の日本語文への変換
を自動化できるという効果がある。
[Effect of the invention] As explained above, according to the present invention, "desu・masu"
This has the effect of automating the conversion from Japanese sentences in the tone to Japanese sentences in the tone ``da・deru''.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例の構成を示すブロック図、第
2図は単語辞書20の一例を示した図、第3図は文法辞
書30の一例を示した図である。 1・・・入力文記憶手段、2・・・単語′辞書記憶手段
、3・・・文法辞書記憶手段、4・・・単語分割手段、
5・・・単語列記憶手段、6・・・「でず」削除手段、
7・・・「だ」挿入手段、8・・・「ます」削除手段、
9・・・動詞活用変形手段、10・・・変換文出力手段
、11・・・制御手段、20・・・単語辞書、30・・
・文法辞書。 第2図
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a diagram showing an example of a word dictionary 20, and FIG. 3 is a diagram showing an example of a grammar dictionary 30. 1... Input sentence storage means, 2... Word' dictionary storage means, 3... Grammar dictionary storage means, 4... Word division means,
5... Word string storage means, 6... "Dezu" deletion means,
7... Means for inserting "da", 8... Means for deleting "masu",
9... Verb conjugation transformation means, 10... Converted sentence output means, 11... Control means, 20... Word dictionary, 30...
・Grammar dictionary. Figure 2

Claims (1)

【特許請求の範囲】[Claims] 入力された「です・ます」調の日本語文を記憶する入力
文記憶手段と、日本語の単語を品詞とともに収納した単
語辞書を記憶する単語辞書記憶手段と、日本語の単語の
接続可否を記述した文法辞書を記憶する文法辞書記憶手
段と、前記単語辞書と前記文法辞書とを検索することに
よって前記「です・ます」調の日本語文を単語列に分割
する単語分割手段と、前記単語分割手段により分割され
た単語列を記憶する単語列記憶手段と、前記単語列記憶
手段に記憶された単語列から助動詞「です」を削除する
「です」削除手段と、前記単語列記憶手段における前記
「です」削除手段によって削除された助動詞「です」の
存在した位置に前記削除された助動詞「です」と同一の
活用形の助動詞「だ」を挿入する「だ」挿入手段と、前
記単語列記憶手段に記憶された単語列から助動詞「ます
」を削除する「ます」削除手段と、前記単語辞書と前記
文法辞書とを参照して前記単語列記憶手段における前記
「ます」削除手段によって削除された助動詞「ます」の
直前の位置の動詞を前記削除された助動詞「ます」の直
後の位置の単語に接続可能な活用形に変形する動詞活用
変形手段とを備えたことを特徴とする語調変換装置。
Input sentence storage means for storing input Japanese sentences in the style of "desu/masu"; word dictionary storage means for storing a word dictionary storing Japanese words along with parts of speech; and description of whether or not Japanese words can be connected. a grammar dictionary storage means for storing a grammar dictionary, a word division means for dividing the Japanese sentence in the "desu-masu" tone into word strings by searching the word dictionary and the grammar dictionary, and the word division means a word string storage means for storing word strings divided by , a ``desu'' deletion means for deleting the auxiliary verb ``desu'' from the word string stored in the word string storage means; ``Da'' insertion means for inserting the auxiliary verb ``DA'' in the same conjugation form as the deleted auxiliary verb ``DES'' in the position where the auxiliary verb ``DES'' was deleted by the deletion means, and the word string storage means. ``Masu'' deletion means for deleting the auxiliary verb ``Masu'' from the stored word string, and the auxiliary verb ``Masu'' deleted by the ``Masu'' deletion means in the word string storage means with reference to the word dictionary and the grammar dictionary. 1. A tone conversion device comprising: a verb conjugation transforming device that transforms a verb in a position immediately before the deleted auxiliary verb "masu" into a conjugated form that can be connected to a word in a position immediately after the deleted auxiliary verb "masu".
JP61055669A 1986-03-12 1986-03-12 Sentence tone converter Granted JPS62211770A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61055669A JPS62211770A (en) 1986-03-12 1986-03-12 Sentence tone converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61055669A JPS62211770A (en) 1986-03-12 1986-03-12 Sentence tone converter

Publications (2)

Publication Number Publication Date
JPS62211770A true JPS62211770A (en) 1987-09-17
JPH0576657B2 JPH0576657B2 (en) 1993-10-25

Family

ID=13005270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61055669A Granted JPS62211770A (en) 1986-03-12 1986-03-12 Sentence tone converter

Country Status (1)

Country Link
JP (1) JPS62211770A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03259372A (en) * 1990-03-09 1991-11-19 Matsushita Electric Ind Co Ltd Method and device for processing style

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5932031A (en) * 1982-08-13 1984-02-21 Ricoh Co Ltd Processor of japanese word information
JPS6084667A (en) * 1983-10-17 1985-05-14 Mitsubishi Electric Corp Sentence composing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5932031A (en) * 1982-08-13 1984-02-21 Ricoh Co Ltd Processor of japanese word information
JPS6084667A (en) * 1983-10-17 1985-05-14 Mitsubishi Electric Corp Sentence composing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03259372A (en) * 1990-03-09 1991-11-19 Matsushita Electric Ind Co Ltd Method and device for processing style

Also Published As

Publication number Publication date
JPH0576657B2 (en) 1993-10-25

Similar Documents

Publication Publication Date Title
Vasiliev Natural language processing with Python and spaCy: A practical introduction
JP5231698B2 (en) How to predict how to read Japanese ideograms
JPS62211770A (en) Sentence tone converter
CN109065016B (en) Speech synthesis method, speech synthesis device, electronic equipment and non-transient computer storage medium
JPH03260766A (en) Translating device with parenthesis generation deciding function
JP3329476B2 (en) Kana-Kanji conversion device
JPS60157659A (en) Japanese language analyzing system
JPH0415503B2 (en)
JPH06162075A (en) Automatic rewriting device
JPS59103136A (en) Kana (japanese syllabary)/kanji (chinese character) processor
JPS62242272A (en) Unifying device for representing sentence termination for word processor
Lin et al. A key-phrase understanding framework integrating real world knowledge with speech recognition with initial application in voice memo systems for Mandarin Chinese
JPS62150461A (en) Sentence error detection system
Woolf SISU: a programming language for computational linguistics, with an application to the analysis of Finnish
JPH04217066A (en) Character processor
JPH04299449A (en) Sentence input device
JPH02120976A (en) System for forming confirmation sentence of japanese sentence analyzing result
KR920010477A (en) Korean Common LISP
JPS62282364A (en) Character string retrieval system
JPS5892064A (en) Constituting system for electronic dictionary
KR930023908A (en) Food recognition system
JPH01100665A (en) Electronic word note forming device
JPS61282966A (en) Kana/kanji conversion system
JPS58142423A (en) Sentence input device
JPH02244272A (en) English word retrieving device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term