Documentation
¶
Index ¶
Constants ¶
View Source
const UniquenessThresholdValue = 70
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareResult ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher() *Dispatcher
func (*Dispatcher) GetProcessedTaskCnt ¶
func (d *Dispatcher) GetProcessedTaskCnt() int
func (*Dispatcher) GetTaskQueue ¶
func (d *Dispatcher) GetTaskQueue() chan DocTask
func (*Dispatcher) Run ¶
func (d *Dispatcher) Run()
func (*Dispatcher) Stop ¶
func (d *Dispatcher) Stop()
type DocTask ¶
type DocTask struct { TargetPaperShingles common.PaperShingles Comparator DocsComparator }
type DocsComparator ¶
type DocsComparator interface {
CompareToDoc(targetPaperShingles common.PaperShingles)
}
type PaperPdfProcessor ¶
type PaperPdfProcessor struct {
// contains filtered or unexported fields
}
func NewPaperPdfProcessor ¶
func NewPaperPdfProcessor(newPaper common.UploadedPaper, database storage.DatabaseInterface, dispatcher *Dispatcher) *PaperPdfProcessor
func (*PaperPdfProcessor) CompareToDoc ¶
func (p *PaperPdfProcessor) CompareToDoc(targetPaperShingles common.PaperShingles)
func (*PaperPdfProcessor) MakeShingles ¶
func (p *PaperPdfProcessor) MakeShingles() error
func (*PaperPdfProcessor) PerformAnalyze ¶
func (p *PaperPdfProcessor) PerformAnalyze() (common.AnalysisResult, error)
func (*PaperPdfProcessor) PrepareFile ¶
func (p *PaperPdfProcessor) PrepareFile() error
Click to show internal directories.
Click to hide internal directories.