public class Learned_DT extends DomainTheory implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
class |
Learned_DT.AuxPredRegistry |
DomainTheory.BaseCB_Cover, DomainTheory.DyadToken
DT_Abstract1.ScoreObj
kinTermSymbols, LGG_ONLY, priorDTMSize, SIMILARITY_ON
bothSexPreds, femalePreds, kinTypePreds, kinTypeSymbols, malePreds, neuterPreds, pluralKTPreds, pluralKTSymbols
addrTerms, current, issuesForUser, primitiveCodes, primPredNames, standardMacroTree
Constructor and Description |
---|
Learned_DT(DomainTheory papa) |
Modifier and Type | Method and Description |
---|---|
void |
acceptCompDef(ComposedDef compDef) |
boolean |
allDone(int minDyadsPerPCStr,
DomainTheory sourceDT) |
void |
clearAllButDiscriminators(java.util.ArrayList<java.lang.Object> issueList) |
boolean |
containsChartableUDPs(java.util.TreeMap pos)
Return true if any of the
Dyad s in POS have a kin type that
includes the flag for a chartable (visible on a tree chart) UDP. |
void |
dumpRemNoise() |
void |
learnKinTerm(java.lang.String kinTerm,
int maxNoise,
int ignorable,
int maxConf,
DomainTheory sourceDT)
After loading Library resources, if necessary, we search the Library for
kin term definitions from other known kinship systems whose pattern of
kin types covered is a match or a superset of the kin types covered so far
by the data for this kin term.
|
void |
learnKinTermLGG(java.lang.String kinTerm,
int maxNoise,
int ignorable) |
void |
makeCompDefDiscriminators(ComposedDef compDef,
KinTermDef realDef,
java.util.ArrayList<java.lang.Object> issueList) |
void |
postLrnHist(java.lang.String roundLearned,
java.lang.Object learningRecord) |
int |
postNoiseCounts(int roundNmbr,
int oldTotal) |
void |
printSuggestions(java.lang.String rnd) |
void |
processSuggestions(int round,
int subRound,
DomainTheory sourceDT,
int maxNoise,
int ignorable,
int minDyadsPerPCStr) |
void |
renameAuxPreds(java.util.ArrayList<java.lang.Object> auxiliaries,
KinTermDef compKTD,
java.lang.String kinTerm,
java.lang.String tag,
Counter cntr) |
void |
retractDef(java.lang.String kinTerm) |
DyadTMap |
truncateUDPKeys(DyadTMap oldMap,
Context c)
Replace every UDP name found in the dyads with either a star ('*') symbol
or a plus ('+'), and all predicates made gender-neutral.
|
void |
truncateUDPpcStrings(Context c) |
int |
typeDefRepudiated(java.lang.String msg,
java.lang.Integer finalRnd,
java.lang.Integer finalSubRnd) |
void |
writeTestResults(java.io.PrintWriter outFile,
java.io.PrintWriter tabFile,
DomainTheory sourceDT) |
addEgoAlterSeniority, addEgoGenderPred, addIfNotDupl, addIfNotDuplicative, addNewCoverage, addNoise, allLGGLits, analyzeKTD_EQC_HitsAndMisses, askUserForData, bodyLengthScore, confirmedScan, createStaticInfo, dataSelection, detectSynonymsAndUmbrellas, doLGG, egoGenderImplied, eraseTracks, evalCandidates, extractTerms, filterNonContradictions, findBaseCBMatches, findCandidates, findImposters, findKTMatches, fit, generalize, getKTSymbols, greedySetCover, groupIntoCB_EQCs, identifySynsEtc, induceSolution, kinTypesWithinDist, lowToHi, makeAnomaly, makeCBfromKinType, makeCover, makeDeepCopies, makeDyadVarBindings, makeKTD_EQCs, makeLetters, makeLGGAnomaly, makeMacro, makeNEG, makeTreeSets, mergeSubTrees, noFits, overlapProposed, perfectFit, pickBestCover, postAnomaliesForUser, postPotUmbrellas, proposeDefinition, proposeDefinition, proposeOverlapToUser, proposeSynonymToUser, proposeUmbrellas, rankStrNonHits, removeChallengedDyads, replaceAuxPred, rescoreCBM, scanForConfirmed, simplifyAuxs, simplifyCBs, subDyads, sumSimScores, sumSimScoresALT, synAlreadyPosted, synonymAlreadyProposed, synRejected, test4Useless, tidyUpSolution, umbAlreadyPosted, umbrellaAlreadyKnown, umbrellaAlreadyProposed, uniquelyNameAuxes, validateNewDyads
allTermsDefined, analyzeSynonymsAndUmbrellas, compare2, computeFeatureVector, determineCategory, distinctDefsProposed, egoGenderSpecified, expandStruct, findHiddenNeuterEgos, findOverlappingTerms, generateIndexes, listSetIntersectionOfStrings, loadBothSex, loadFemales, loadKTPreds, loadKTSymbols, loadMales, loadNeuters, loadPluralKTPreds, loadPluralKTSymbols, matchDyads, mergeUDPs, predToSymbol, resolveSynonymsInDyads, searchFor, setIntersection, symbolToPred, validateSynonymsAndUmbrellas
addTerm, addTerm, countLeaves, equivalentLists, fillInNames, found, foundInSigStr, harvestLeaves, isEmpty, isPrimOrMacro, isSupersetOf, loadPrimitiveCodes, makeExampleDyad, makeExampleGEDCOMFile, maleAndFemaleCreatedHeThem, mergeNestedTrees, mergeTrees, nonTerm, notFound, printableBaseTerm, printableTerm, toSILKString, toString, toThyFile
public Learned_DT(DomainTheory papa)
public boolean allDone(int minDyadsPerPCStr, DomainTheory sourceDT)
public void truncateUDPpcStrings(Context c)
public DyadTMap truncateUDPKeys(DyadTMap oldMap, Context c)
oldMap
- the current DyadTMapc
- the releavant Contextpublic void learnKinTermLGG(java.lang.String kinTerm, int maxNoise, int ignorable) throws KSInternalErrorException, KSParsingErrorException, KSBadHornClauseException, KSNoChainOfRelations2Alter, KSConstraintInconsistency, java.lang.ClassNotFoundException, JavaSystemException, java.io.FileNotFoundException, java.io.IOException
KSInternalErrorException
KSParsingErrorException
KSBadHornClauseException
KSNoChainOfRelations2Alter
KSConstraintInconsistency
java.lang.ClassNotFoundException
JavaSystemException
java.io.FileNotFoundException
java.io.IOException
public void learnKinTerm(java.lang.String kinTerm, int maxNoise, int ignorable, int maxConf, DomainTheory sourceDT) throws KSInternalErrorException, KSParsingErrorException, KSBadHornClauseException, KSNoChainOfRelations2Alter, KSConstraintInconsistency, java.lang.ClassNotFoundException, JavaSystemException, java.io.FileNotFoundException, java.io.IOException
kinTerm
- the kin term to be learnedmaxNoise
- percent of misfit data that can be questioned as possibly
erroneous. If more than this % don't match, they are assumed
to represent a kinship fact of some kind.ignorable
- percent of misfits data that can be ignored without correctionmaxConf
- one half of the ignorable percentsourceDT
- the domain theory that was cloned to make this learnerKSInternalErrorException
KSParsingErrorException
KSBadHornClauseException
KSNoChainOfRelations2Alter
KSConstraintInconsistency
java.lang.ClassNotFoundException
JavaSystemException
java.io.FileNotFoundException
java.io.IOException
public boolean containsChartableUDPs(java.util.TreeMap pos)
Dyad
s in POS have a kin type that
includes the flag for a chartable (visible on a tree chart) UDP.pos
- POS is TreeMap<KinType, ArrayList<Dyad>>public void processSuggestions(int round, int subRound, DomainTheory sourceDT, int maxNoise, int ignorable, int minDyadsPerPCStr) throws KSBadHornClauseException, KSInternalErrorException, KSConstraintInconsistency, java.lang.ClassNotFoundException, KinshipSystemException, KSParsingErrorException, JavaSystemException, KSInternalErrorException, java.io.FileNotFoundException, java.io.IOException
KSBadHornClauseException
KSInternalErrorException
KSConstraintInconsistency
java.lang.ClassNotFoundException
KinshipSystemException
KSParsingErrorException
JavaSystemException
java.io.FileNotFoundException
java.io.IOException
public void clearAllButDiscriminators(java.util.ArrayList<java.lang.Object> issueList)
public void makeCompDefDiscriminators(ComposedDef compDef, KinTermDef realDef, java.util.ArrayList<java.lang.Object> issueList) throws KSInternalErrorException, JavaSystemException
public void acceptCompDef(ComposedDef compDef) throws KSParsingErrorException, java.lang.ClassNotFoundException, KSInternalErrorException, KSConstraintInconsistency, KSBadHornClauseException
KSParsingErrorException
java.lang.ClassNotFoundException
KSInternalErrorException
KSConstraintInconsistency
KSBadHornClauseException
public void renameAuxPreds(java.util.ArrayList<java.lang.Object> auxiliaries, KinTermDef compKTD, java.lang.String kinTerm, java.lang.String tag, Counter cntr) throws KSParsingErrorException, java.lang.ClassNotFoundException, KSInternalErrorException, KSConstraintInconsistency, KSBadHornClauseException
KSParsingErrorException
java.lang.ClassNotFoundException
KSInternalErrorException
KSConstraintInconsistency
KSBadHornClauseException
public void retractDef(java.lang.String kinTerm)
public void printSuggestions(java.lang.String rnd) throws KSParsingErrorException, JavaSystemException, KSInternalErrorException, KSConstraintInconsistency
public int postNoiseCounts(int roundNmbr, int oldTotal)
public void postLrnHist(java.lang.String roundLearned, java.lang.Object learningRecord)
public void writeTestResults(java.io.PrintWriter outFile, java.io.PrintWriter tabFile, DomainTheory sourceDT) throws KSInternalErrorException
KSInternalErrorException
public int typeDefRepudiated(java.lang.String msg, java.lang.Integer finalRnd, java.lang.Integer finalSubRnd) throws KSInternalErrorException
KSInternalErrorException
public void dumpRemNoise()