Share via


JapanesePhoneticAnalyzer.GetWords 方法

定义

重载

GetWords(String)

读取日文字符串,该字符串是日文汉字字符和平假名字符的组合,并从包含分词符的字符串中返回正确读取的集合。

GetWords(String, Boolean)

读取日文字符串,该字符串是日文汉字字符和平假名字符的组合,并从包含分词符的字符串中返回正确读取的集合。 (可选)使用“Mono Ruby”策略将多个汉字分解为多个汉字。

GetWords(String)

读取日文字符串,该字符串是日文汉字字符和平假名字符的组合,并从包含分词符的字符串中返回正确读取的集合。

public:
 static IVectorView<JapanesePhoneme ^> ^ GetWords(Platform::String ^ input);
/// [Windows.Foundation.Metadata.Overload("GetWords")]
 static IVectorView<JapanesePhoneme> GetWords(winrt::hstring const& input);
[Windows.Foundation.Metadata.Overload("GetWords")]
public static IReadOnlyList<JapanesePhoneme> GetWords(string input);
function getWords(input)
Public Shared Function GetWords (input As String) As IReadOnlyList(Of JapanesePhoneme)

参数

input
String

Platform::String

winrt::hstring

日文字符串,是汉字字符和平假名字符的组合。

此字符串的最大长度为 100 个字符。

返回

一个 JapanesePhoneme 对象的集合,这些对象表示带分词符的字符串的正确读取。

属性

另请参阅

适用于

GetWords(String, Boolean)

读取日文字符串,该字符串是日文汉字字符和平假名字符的组合,并从包含分词符的字符串中返回正确读取的集合。 (可选)使用“Mono Ruby”策略将多个汉字分解为多个汉字。

public:
 static IVectorView<JapanesePhoneme ^> ^ GetWords(Platform::String ^ input, bool monoRuby);
/// [Windows.Foundation.Metadata.Overload("GetWordsWithMonoRubyOption")]
 static IVectorView<JapanesePhoneme> GetWords(winrt::hstring const& input, bool const& monoRuby);
[Windows.Foundation.Metadata.Overload("GetWordsWithMonoRubyOption")]
public static IReadOnlyList<JapanesePhoneme> GetWords(string input, bool monoRuby);
function getWords(input, monoRuby)
Public Shared Function GetWords (input As String, monoRuby As Boolean) As IReadOnlyList(Of JapanesePhoneme)

参数

input
String

Platform::String

winrt::hstring

日文字符串,是汉字字符和平假名字符的组合。

此字符串的最大长度为 100 个字符。

monoRuby
Boolean

bool

指定使用断字策略“Mono Ruby”。 如果 为 true,则使用断字策略“Mono Ruby”。 “Mono Ruby”更积极地尝试将多个汉字分解为多个汉字。

如果 为 false,则不使用“Mono Ruby”。

返回

一个 JapanesePhoneme 对象的集合,这些对象表示带分词符的字符串的正确读取。

属性

另请参阅

适用于