text_analysis 0.13.0-1 text_analysis: ^0.13.0-1 copied to clipboard
Text analyzer that tokenize text, compute readibility scores for a document and evaluate similarity of terms.
0.13.0-1 #
BREAKING CHANGES
Breaking Changes:
- Added field
TextAnalyzer.stemmer
toTextAnalyzer
class. - Added field
TextAnalyzer.stopWords
toTextAnalyzer
class. - Added field
TextAnalyzer.lemmatizer
toTextAnalyzer
class. - Added field
TextAnalyzer.termExceptions
toTextAnalyzer
class. - Removed static field
TextTokenizer.defaultTokenFilter
. - Changed
TextTokenizer.tokenize
method to applyanalyzer.stemmer
,analyzer.stopWords
,analyzer.lemmatizer
ananalyzer.termExceptions
to all tokens/terms.
New:
- Implemented field
English.stemmer
inEnglish
class. - Implemented field
English.stopWords
inEnglish
class. - Implemented field
English.lemmatizer
inEnglish
class. - Implemented field
English.termExceptions
inEnglish
class.
Updated dependencies, tests, examples and documentation.
0.12.1+1 #
Updated documentation.
0.12.1 #
New:
- Added extension on String
editDistanceMap
; - Added method
TermSimilarity.editSimilarityMap
. - Added method
TermSimilarity.editDistanceMap
.
Updated dependencies, tests, examples and documentation.
0.12.0 #
BREAKING CHANGES
Breaking Changes:
- String extensions
extension TermSimilarityExtensions on String
removed fromtext_analysis
library. Import theextensions
library in stead. - Type definitions removed from
text_analysis
library. Import thetype_definitions
library in stead. - Package export
porter_2_stemmer
removed fromtext_analysis
library, import thepackage_exports
library in stead. - Changed definition/computation of [lengthDistance].
- Changed definition/computation of [lengthSimilarity].
- Changed definition/computation of [termSimilarity].
New:
- Added
int term.editDistance(String other)
extension on String. - Added
double term.editDistanceSimilarity(String other)
extension on String. - Added class
TermSimilarity
that exposes static methods for comparing terms.
Bug fixes:
- Fixed issue with tokenizer not incrementing term positions
Updated dependencies, tests, examples and documentation.
0.12.0-2 #
BREAKING CHANGES
Breaking Changes:
- String extensions
extension TermSimilarityExtensions on String
removed fromtext_analysis
library. Import theextensions
library in stead. - Type definitions removed from
text_analysis
library. Import thetype_definitions
library in stead. - Package export
porter_2_stemmer
removed fromtext_analysis
library, import thepackage_exports
library in stead. - Changed definition/computation of [lengthDistance].
- Changed definition/computation of [lengthSimilarity].
- Changed definition/computation of [termSimilarity].
New:
- Added
int term.editDistance(String other)
extension on String. - Added
double term.editDistanceSimilarity(String other)
extension on String. - Added class
TermSimilarity
that exposes static methods for comparing terms.
Bug fixes:
- Fixed issue with tokenizer not incrementing term positions
Updated dependencies, tests, examples and documentation.
0.12.0-1 #
BREAKING CHANGES
Breaking Changes:
- String extensions
extension TermSimilarityExtensions on String
removed fromtext_analysis
library. Import theextensions
library in stead. - Type definitions removed from
text_analysis
library. Import thetype_definitions
library in stead. - Package export
porter_2_stemmer
removed fromtext_analysis
library, import thepackage_exports
library in stead. - Changed definition/computation of [lengthDistance].
- Changed definition/computation of [lengthSimilarity].
- Changed definition/computation of [termSimilarity].
New:
- Added
int term.editDistance(String other)
extension on String. - Added
double term.editDistanceSimilarity(String other)
extension on String. - Added class
TermSimilarity
that exposes static methods for comparing terms.
Bug fixes:
- Fixed issue with tokenizer not incrementing term positions
Updated dependencies, tests, examples and documentation.
0.11.2 #
New:
- Added extension on String
List<Term> matches(Iterable<Term> terms, {int k = 2, int limit = 10})
.
Updated dependencies, tests, examples and documentation.
0.11.1 #
New:
- Added extension on String
double termSimilarity(Term other, [int k = 2])
. - Added extension on String
double termSimilarity(Term other, [int k = 2])
.
Updated dependencies, tests, examples and documentation.
0.11.0 #
BREAKING CHANGES
This version sees numerous breaking changes, including the re-naming of the primary interfaces of the library.
Breaking Changes:
- Renamed
TextAnalyzer
interface toTextTokenizer
. - Renamed
TextAnalyzerConfiguration
interface toTextAnalyzer
. - Added
SentenceSplitter get sentenceSplitter
toTextAnalyzer
interface. - Added
ParagraphSplitter get paragraphSplitter
toTextAnalyzer
interface. - Added
SyllableCounter get syllableCounter
toTextAnalyzer
interface. - Added
List<String> paragraphs(SourceText source)
toITextTokenizer
interface. - Moved class
TextTokenizer
to a private implementation class_TextTokenizerImpl
and renamedITextTokenizer
interface toTextTokenizer
.
New:
- Added mixin class
TextTokenizerMixin
. - Added object model
TextDocument
. - Added typedef
SyllableCounter
. - Added unnamed factory constructor to
TextTokenizer
that initializes a_TextTokenizerImpl
. - Added
SentenceSplitter get sentenceSplitter
toEnglish
class. - Added
ParagraphSplitter get paragraphSplitter
toEnglish
class. - Added
SyllableCounter get syllableCounter
toEnglish
class. - Added
TextDocument
interface. - Added
TextDocumentMixin
mixin class. - Added
TextDocument
unnamed factory with private implementation class. - Added
TextDocument.analyze
factory constructor. - Added
TextDocument.analyzeJson
factory constructor. - Added extension on String
double lengthDistance(Term other)
. - Added extension on String
double lengthSimilarity(Term other)
. - Added extension on String
Map<Term, double> lengthSimilarityMap(Iterable<Term> terms)
.
Updated dependencies, tests, examples and documentation. Re-organized code repository
0.10.0 #
BREAKING CHANGES
This version sees numerous breaking changes, including the re-naming of the primary interfaces of the library.
Breaking Changes:
- Renamed
TextAnalyzer
interface toTextTokenizer
. - Renamed
TextAnalyzerConfiguration
interface toTextAnalyzer
. - Added
SentenceSplitter get sentenceSplitter
toTextAnalyzer
interface. - Added
ParagraphSplitter get paragraphSplitter
toTextAnalyzer
interface. - Added
SyllableCounter get syllableCounter
toTextAnalyzer
interface. - Added
List<String> paragraphs(SourceText source)
toITextTokenizer
interface. - Moved class
TextTokenizer
to a private implementation class_TextTokenizerImpl
and renamedITextTokenizer
interface toTextTokenizer
.
New:
- Added mixin class
TextTokenizerMixin
. - Added object model
TextDocument
. - Added typedef
SyllableCounter
. - Added unnamed factory constructor to
TextTokenizer
that initializes a_TextTokenizerImpl
. - Added
SentenceSplitter get sentenceSplitter
toEnglish
class. - Added
ParagraphSplitter get paragraphSplitter
toEnglish
class. - Added
SyllableCounter get syllableCounter
toEnglish
class. - Added
TextDocument
interface. - Added
TextDocumentMixin
mixin class. - Added
TextDocument
unnamed factory with private implementation class. - Added
TextDocument.analyze
factory constructor. - Added
TextDocument.analyzeJson
factory constructor. - Added extension on String
double lengthDistance(Term other)
. - Added extension on String
double lengthSimilarity(Term other)
. - Added extension on String
Map<Term, double> lengthSimilarityMap(Iterable<Term> terms)
.
Updated dependencies, tests, examples and documentation. Re-organized code repository
0.9.1 #
New:
- Added extension on String
double jaccardSimilarity(Term other, [int k = 2])
. - Added extension on String
double jaccardSimilarity(Term other, [int k = 2])
.
Updated dependencies, tests, examples and documentation.
0.9.0 #
BREAKING CHANGES
Breaking Changes:
- Removed class
TextSource
. - Removed class
Sentence
. - Removed class
TermPair
. - Removed
TextAnalyzer.sentenceSplitter
fromTextAnalyzer
interface. - Changed
TextTokenizer.tokenize
return value toList<Token>
. - Changed
TextTokenizer.tokenizeJson
return value toList<Token>
.
0.8.1 #
PRE-RELEASE, BUG FIX
Bug Fixes:
- Fixed
TextTokenizerBase.tokenizeJson
would not tokenize documents ifIterable<Zone> zones
parameter is empty.
Non-breaking Changes:
TextTokenizerBase.tokenizeJson
required non-nullable parameterIterable<Zone> zones
to optional nullable[Iterable<Zone>? zones]
.
0.8.0 #
PRE-RELEASE, BREAKING CHANGES
Breaking Changes:
- Added type definitions for
kGram
andTrigram
. - New extension method
Set<kGram> Term.kGrams([int k = 2])
. - New extension method
Set<kGram> Iterable<Token>.kGrams([int k = 2])
.
Updated dependencies, tests, examples and documentation.
0.7.0 #
PRE-RELEASE, BREAKING CHANGES
Breaking Changes:
- Renamed
FieldName
type alias toZone
. - Renamed parameter
FieldName? field
toZone? zone
wherever it is used.
New:
- Type alias
IdFt
. - Type alias
Ft
. - Type alias
ZoneWeightMap
.
Updated dependencies, tests, examples and documentation.
0.6.5+1 #
PRE-RELEASE
Minor bug fixes, updated dependencies, tests, examples and documentation.
0.6.5 #
PRE-RELEASE
New:
- Added custom implementation of
TermPair.toString()
.
Updated dependencies, tests, examples and documentation.
0.6.4 #
PRE-RELEASE
New:
- Added
==
operator andhashCode
getter toTermPair
.
Updated dependencies, tests, examples and documentation.
0.6.3 #
PRE-RELEASE
New:
- Added object model
TermPair
.
Updated dependencies, tests, examples and documentation.
0.6.2 #
PRE-RELEASE
New:
- Added extension getter
List<String> get allTerms
onIterable<Token>
.
Updated dependencies, tests, examples and documentation.
0.6.1 #
PRE-RELEASE
- Added type aliases to improve code readability.
Updated dependencies, tests, examples and documentation.
0.6.0+1 #
PRE-RELEASE
- Codebase formatted.
Updated dependencies, tests, examples and documentation.
0.6.0 #
PRE-RELEASE, BREAKING CHANGES
Breaking Changes:
- Changed parameters for
JsonTokenizer
type defintion.
Updated dependencies, tests, examples and documentation.
0.5.0 #
PRE-RELEASE
New:
- Added
JsonTokenizer
type defintion.
Updated dependencies, tests, examples and documentation.
0.4.1 #
PRE-RELEASE
New:
- Added optional, nullable
FieldName? field
optional parameter toTokenizer
definition.
Updated dependencies, tests, examples and documentation.
0.4.0+1 #
PRE-RELEASE
- Updated documentation.
0.4.0 #
PRE-RELEASE, BREAKING CHANGES
Breaking Changes:
- Added
Token.field
property to token, breaks default generative constructor. - Added
FieldName? field
optional parameter toTextTokenizer.tokenize
method. - Removed deprecated property
Token.index
, useToken.termPosition
instead. - Removed deprecated property
Token.position
, useToken.termPosition
instead. - Removed deprecated extension method
Iterable<Token>.maxIndex
, useIterable<Token>.
Iterable - Removed extension method
Iterable<Token>.minIndex
, useIterable<Token>.
Iterable
New:
- Added new method
ITextAnalyser,tokenizeJson
. - Added new tests.
- Added new examples.
Updated dependencies, tests, examples and documentation.
0.3.1 #
PRE-RELEASE
Updated dependencies, tests, examples and documentation.
0.3.0+1 #
PRE-RELEASE
- Updated documentation.
0.3.0 #
PRE-RELEASE, BREAKING CHANGES
Breaking Changes:
TextAnalyzer.characterFilter
changed to non-nullable. Use(phrase) => phrase
if nocharacterFilter
is required.TextAnalyzer.termFilter
changed to non-nullable. Use(phrase) => [phrase]
if notermFilter
is required.
New:
- Added
porter_2_stemmer
package export so it does not need to be imported separately. - Updated documentation.
0.2.0+1 #
PRE-RELEASE
Updated dependencies, tests, examples and documentation.
0.2.0 #
PRE-RELEASE
New:
- Added abstract class
TextTokenizerBase
. - Updated documentation.
0.1.0+1 #
PRE-RELEASE
Updated dependencies, tests, examples and documentation.
0.1.0 #
PRE-RELEASE, BREAKING CHANGES
Breaking Changes:
- Added
Token.termPosition
property to token, breaks default generative constructor.
Deprecated:
- Property
Token.index
, useToken.termPosition
instead. - Property
Token.position
, useToken.termPosition
instead. - Extension method
Iterable<Token>.maxIndex
.
1.0.0+1 #
PRE-RELEASE
Updated dependencies, tests, examples and documentation.
1.0.0 #
PRE-RELEASE
Updated dependencies, tests, examples and documentation.
0.0.12+1 #
PRE-RELEASE
- Updated documentation.
0.0.12 #
PRE-RELEASE
New:
- Added == operator to
Token
,Sentence
andTextSource
.
Updated dependencies, tests, examples and documentation.
0.0.11+build.1.e8af2efb #
- PRE-RELEASE
Updated dependencies, tests, examples and documentation.
0.0.11 #
PRE-RELEASE
Updated dependencies, tests, examples and documentation.
0.0.11-beta.1 #
PRE-RELEASE
Updated dependencies, tests, examples and documentation.
0.0.10 #
PRE-RELEASE
Updated dependencies, tests, examples and documentation.
0.0.9-beta.1 #
Breaking Changes:
- Changed definition of
Token.position
.
Updated dependencies, tests, examples and documentation.
0.0.8 #
PRE-RELEASE, BREAKING CHANGES
- BREAKING CHANGE: removed
relevance
extension method fromTokenCollectionExtension
.
0.0.7 #
PRE-RELEASE
- Updated documentation.
0.0.6 #
PRE-RELEASE, BREAKING CHANGES
New:
- Added
TokenCollectionExtension
onIterable<Token>
.
0.0.5 #
PRE-RELEASE, BREAKING CHANGES
Breaking Changes:
- added
position
property toToken
class.
0.0.4 #
PRE-RELEASE, BREAKING CHANGES
New:
- Added
Tokenizer
type definition.
0.0.3 #
PRE-RELEASE, BREAKING CHANGES
Breaking Changes:
- Stemmer removed from English configuration.
- Stemmer incorporated into default tokenFilter for
TextTokenizer
.
0.0.2 #
PRE-RELEASE, BREAKING CHANGES
- Updated documentation.
0.0.1-beta.1 #
PRE-RELEASE
- Initial version.