locked
Multiple words Spelling Suggestion Model RRS feed

  • Question

  • User913922097 posted

    I can't seem to figure out how to efficiently solve a problem.

    I have the following data represented like this:

    Public Class WordWithSuggestions
        Private _Originalword As String
        Private _SpellingSuggestions As List(Of String)
        Public Property OriginalWord As String
            Get
                Return _Originalword
            End Get
            Set(ByVal value As String)
                _Originalword = value
            End Set
        End Property
        Public Property SpellingSuggestions As List(Of String)
            Get
                Return _SpellingSuggestions
            End Get
            Set(ByVal value As List(Of String))
                _SpellingSuggestions = value
            End Set
        End Property
        Public Sub New()
        End Sub
    End Class

    Once filled up, it looks like this (example):

    For the given senquence of words "sumari businiss metodology" and considering that all of them are misspelled.

    The each column represents a class instance (3 for example), the word in bold is the OriginalWord, while the ones below it are the list of suggested spelling correction.

    How can i effectively loop through the list of instances in order to get a list of suggested sentences. my goal is to have on that final list all the spelling suggestion candidates in the same order of the original sequence:

    Summary Business Methodology

    Summary Business Method

    Summary Busiest Methodology

    Summary Busiest Method

    Symmetry Business Methodology

    Symmetry Business Method

    .....

    Sumari

    Businiss

    Metodology

    Summary

    Business

    Methodology

    Symmetry

    Busiest

    Method

    Summing

     

     

    Summarize

     

     



    Wednesday, June 6, 2012 3:09 AM

All replies

  • User913922097 posted

    Nobody has a clue?

    Thursday, June 7, 2012 4:18 AM