public final class UmlsTermUtil extends Object
Constructor and Description |
---|
UmlsTermUtil(String dataDir) |
UmlsTermUtil(String removalPrefixTriggersPath,
String removalSuffixTriggersPath,
String removalColonTriggersPath,
String removalFunctionTriggersPath,
String unwantedPrefixesPath,
String unwantedSuffixesPath,
String unwantedTextsPath,
String modifierSuffixesPath,
String abbreviationsPath,
String keepPrefixTriggersPath) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getFormattedTexts(String strippedText,
boolean extractAbbreviations,
int minCharLength,
int maxCharLength,
int maxWordCount,
int maxSymCount) |
String |
getStrippedText(String text) |
static boolean |
isTextTooLong(String text,
int maxCharLength,
int maxWordCount,
int maxSymCount) |
static boolean |
isTextTooShort(String text,
int minCharLength) |
boolean |
isTextValid(String text) |
public UmlsTermUtil(String dataDir)
public UmlsTermUtil(String removalPrefixTriggersPath, String removalSuffixTriggersPath, String removalColonTriggersPath, String removalFunctionTriggersPath, String unwantedPrefixesPath, String unwantedSuffixesPath, String unwantedTextsPath, String modifierSuffixesPath, String abbreviationsPath, String keepPrefixTriggersPath)
public boolean isTextValid(String text)
public static boolean isTextTooShort(String text, int minCharLength)
public static boolean isTextTooLong(String text, int maxCharLength, int maxWordCount, int maxSymCount)
public Collection<String> getFormattedTexts(String strippedText, boolean extractAbbreviations, int minCharLength, int maxCharLength, int maxWordCount, int maxSymCount)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.