Package com.logicaldoc.ai.nlp
Class NaturalLanguageModel
java.lang.Object
com.logicaldoc.core.PersistentObject
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Classifier,- TokensDetector
A super class of those 
AIModels specialized in the processing of the
 natural language- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- 
Field SummaryFields inherited from class com.logicaldoc.ai.AIModelAIQUERY, AIQUERY_HYPHENFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintintintinthashCode()abstract QueryResult<String> Concrete implementations must give a prediction from a single sentencevoidsetCutoff(int cutoff) voidsetLanguage(String language) voidsetNgramMax(int ngramMax) voidsetNgramMin(int ngramMin) Methods inherited from class com.logicaldoc.ai.AIModelgetDescription, getFeaturesList, getLabel, getName, getTraining, newModel, query, setDescription, setLabel, setName, setTraining, toString, typesMethods inherited from class com.logicaldoc.core.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
- 
Method Details- 
getLanguage
- 
setLanguage
- 
getCutoffpublic int getCutoff()
- 
setCutoffpublic void setCutoff(int cutoff) 
- 
getNgramMinpublic int getNgramMin()
- 
setNgramMinpublic void setNgramMin(int ngramMin) 
- 
getNgramMaxpublic int getNgramMax()
- 
setNgramMaxpublic void setNgramMax(int ngramMax) 
- 
querypublic abstract QueryResult<String> query(String sentence) throws AIException, IOException, com.logicaldoc.core.PersistenceException Concrete implementations must give a prediction from a single sentence- Parameters:
- sentence- The sentence to process
- Returns:
- The prediction
- Throws:
- AIException- Error in elaborating the AI model
- IOException- I/O error
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
hashCodepublic int hashCode()
- 
equals
 
-