Record Class LinguisticSystem.CorpusProfile
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.LinguisticSystem.CorpusProfile
- Enclosing class:
LinguisticSystem
public static record LinguisticSystem.CorpusProfile(String name, long documentCount, long totalTokens, long vocabularySize, double lexicalDiversity, double entropy)
extends Record
Conducts a full statistical profile of a corpus.
Includes TTR, entropy, and vocabulary insights.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionCorpusProfile(String name, long documentCount, long totalTokens, long vocabularySize, double lexicalDiversity, double entropy) Creates an instance of aCorpusProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedocumentCountrecord component.doubleentropy()Returns the value of theentropyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelexicalDiversityrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalTokensrecord component.longReturns the value of thevocabularySizerecord component.
-
Constructor Details
-
CorpusProfile
public CorpusProfile(String name, long documentCount, long totalTokens, long vocabularySize, double lexicalDiversity, double entropy) Creates an instance of aCorpusProfilerecord class.- Parameters:
name- the value for thenamerecord componentdocumentCount- the value for thedocumentCountrecord componenttotalTokens- the value for thetotalTokensrecord componentvocabularySize- the value for thevocabularySizerecord componentlexicalDiversity- the value for thelexicalDiversityrecord componententropy- the value for theentropyrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
documentCount
public long documentCount()Returns the value of thedocumentCountrecord component.- Returns:
- the value of the
documentCountrecord component
-
totalTokens
public long totalTokens()Returns the value of thetotalTokensrecord component.- Returns:
- the value of the
totalTokensrecord component
-
vocabularySize
public long vocabularySize()Returns the value of thevocabularySizerecord component.- Returns:
- the value of the
vocabularySizerecord component
-
lexicalDiversity
public double lexicalDiversity()Returns the value of thelexicalDiversityrecord component.- Returns:
- the value of the
lexicalDiversityrecord component
-
entropy
public double entropy()Returns the value of theentropyrecord component.- Returns:
- the value of the
entropyrecord component
-