Constructor and Description |
---|
HangulAnalysis() |
Modifier and Type | Method and Description |
---|---|
static String |
convertParticl(String sentence,
String word,
int index)
助詞置き換え
|
SourceAndMorphemesAndCodes |
doConstructSMC(Morpheme[] morphemes,
Map<Integer,TranslationWithPosition> positionMap) |
SourceAndMorphemesAndCodes |
doConstructSMCMarking(Morpheme[] morphemes,
Map<Integer,TranslationWithPosition> positionMap) |
String |
doConstructSource(Morpheme[] morphemes) |
static String |
getParticl(String term,
String word,
String lemma)
助詞を返す
|
protected SourceAndMorphemesAndCodes |
invoke(Morpheme[] morphemes,
Map<Integer,TranslationWithPosition> positionMap,
boolean marking)
invoke
|
static boolean |
isCVC(char c)
文字が子音+母音+子音で出来ていたらTrue
|
static boolean |
isCVC(String str)
単語の最終の文字が子音+母音+子音で出来ていたらTrue
|
public static boolean isCVC(char c)
c
- ハングル文字public static boolean isCVC(String str)
str
- ハングル文字列public static String convertParticl(String sentence, String word, int index)
sentence
- 文章word
- 置き換えた言葉index
- 置き換えたインデックスpublic static String getParticl(String term, String word, String lemma)
term
- 文章word
- 最後の形態素:言葉lemma
- 最後の形態素:原型public String doConstructSource(Morpheme[] morphemes) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
doConstructSource
in interface Analysis
AccessLimitExceededException
InvalidParameterException
LanguageNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguageException
public SourceAndMorphemesAndCodes doConstructSMC(Morpheme[] morphemes, Map<Integer,TranslationWithPosition> positionMap) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
doConstructSMC
in interface Analysis
AccessLimitExceededException
InvalidParameterException
LanguageNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguageException
public SourceAndMorphemesAndCodes doConstructSMCMarking(Morpheme[] morphemes, Map<Integer,TranslationWithPosition> positionMap) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
doConstructSMCMarking
in interface Analysis
AccessLimitExceededException
InvalidParameterException
LanguageNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguageException
protected SourceAndMorphemesAndCodes invoke(Morpheme[] morphemes, Map<Integer,TranslationWithPosition> positionMap, boolean marking) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
morphemes
- positionMap
- marking
- AccessLimitExceededException
InvalidParameterException
LanguageNotUniquelyDecidedException
NoAccessPermissionException
NoValidEndpointsException
ProcessFailedException
ServerBusyException
ServiceNotActiveException
ServiceNotFoundException
UnsupportedLanguageException