Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a C# Expert!

Join 244,303 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 778 people online right now. Registration is fast and FREE... Join Now!




Concordance

 
Reply to this topicStart new topic

Concordance, Generating a concordance

ramcodex
11 Jan, 2009 - 10:44 PM
Post #1

New D.I.C Head
*

Joined: 11 Jan, 2009
Posts: 1

1. Given an arbitrary text document written in English, write a program that will generate a concordance, i.e. an alphabetical list of all word occurrences, labeled with word frequencies. Bonus: label each word with the sentence numbers in which each occurrence appeared.

a. a {2:1,1}
b. all {1:1}
c. alphabetical {1:1}
d. an {2:1,1}
e. appeared {1:2}
f. arbitrary {1:1}
g. bonus {1:2}
h. concordance {1:1}
i. document {1:1}
j. each {1:2}
k. english {1:1}
l. frequencies {1:1}
m. generate {1:1}
n. given {1:1}
o. i.e. {1:1}
p. in {2:1,2}
q. it {1:2}
r. label {1:2}
s. labeled {1:1}
t. list {1:1}
u. numbers {1:2}
v. occurrences {1:1}
w. of {1:1}
x. program {1:1}
y. sentence {1:2}
z. text {1:1}
aa. that {1:1}
bb. the {1:2}
cc. which {1:2}
dd. will {1:1}
ee. with {2:1,2}
ff. word {3:1,1,2}
gg. write {1:1}
hh. written {1:1}


User is offlineProfile CardPM
+Quote Post


n8wxs
RE: Concordance
11 Jan, 2009 - 11:06 PM
Post #2

--... ...-- -.. . -. ---.. .-- -..- ...
Group Icon

Joined: 6 Jan, 2008
Posts: 1,609



Thanked: 223 times
My Contributions
Welcome!

Please post your code attempting to solve your problem using the code tags:

code.gif

We will help you debug your code and maybe even improve it! smile.gif

We will not do your work for you.

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.

User is offlineProfile CardPM
+Quote Post

b.ihde
RE: Concordance
11 Jan, 2009 - 11:33 PM
Post #3

D.I.C for life
Group Icon

Joined: 29 Sep, 2008
Posts: 944



Thanked: 23 times
Dream Kudos: 75
My Contributions
Hi and welcome to DIC!

I didnīt find any questions.. Please tell us whatīs your problem.

Thanks

B.Ihde
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 06:05PM

Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month