public class PersonNameFinder extends AbstractFinder
Constructor and Description |
---|
PersonNameFinder()
Constructor
|
PersonNameFinder(String strReplacement)
Constructor
|
PersonNameFinder(String strReplacement,
String strLanguage)
Constructor
|
Modifier and Type | Method and Description |
---|---|
List<String> |
findOccurrences(String strInput)
Find one or several occurrences of an entity
|
String |
getNameModel() |
static String |
getTokenModel() |
String |
replaceOccurrences(String strInputText)
Replace all the occurrences of an entity by a replacement text
|
String |
replaceOccurrences(String strInput,
String strReplacement)
Replace all the occurrences of an entity by a replacement text
|
void |
setNameModel(String strModel) |
static void |
setTokenModel(String strModel) |
addEntity, getFoundEntities, getLanguage, getReplacement, setLanguage, setReplacement
public PersonNameFinder()
public PersonNameFinder(String strReplacement)
strReplacement
- The replacementpublic String getNameModel()
public void setNameModel(String strModel)
strModel
- the Model to setpublic static String getTokenModel()
public static void setTokenModel(String strModel)
strModel
- the Model to setpublic List<String> findOccurrences(String strInput) throws FinderException
strInput
- The input textFinderException
- If an error occurspublic String replaceOccurrences(String strInputText) throws FinderException
strInputText
- The input textFinderException
- If an error occurspublic String replaceOccurrences(String strInput, String strReplacement) throws FinderException
strInput
- The input textstrReplacement
- The replacement textFinderException
- If an error occursCopyright © 2020 City of Paris. All rights reserved.