Questions relating to working with textual information: textual analysis, data mining, etc.

learn more… | top users | synonyms

0
votes
1answer
79 views

Create new file, based on 500 articles

I've got a folder with 500 newspaper articles. Each article is saved in a seperate file with a number in the title like "1.txt", "2.txt". Each article has a date but it is not clear in which line the ...
1
vote
2answers
64 views

Select record when third column matches certain criterion

I've a table with 3 columns. The table looks like this: ...
1
vote
1answer
50 views

using deletecases for twittermessages using the timestamp

I have a Excelsheet with tweetsmessages. These tweets are all written in Dutch. I would like to analyse these tweets in relation to the timestamp. ...
0
votes
0answers
33 views

Is It Possible To Replicate Tab Stop Behaviour (or Even PageFooter Behaviour but in Regular Cell)

I am trying to insert a (text) cell into a notebook that replicates the behaviour of tab stops in MS Word, for example. Put differently, I have two strings and I want the one string to align on the ...
0
votes
1answer
42 views

Replacing whole strings

I imported a text and seperated al words by using StringCases. After this I would like to manipulate the text, for example to replace all singular verbs to plural. ...
19
votes
2answers
298 views

Can Mathematica determine part-of-speech for each word in a text?

I've found that WordData has a database of English words and their possible parts of speech. But some words are ambiguous, e.g. result can be a verb or a noun: ...
5
votes
2answers
121 views

Using StringCases and treating certain phrases as single words

My question is about StringCases. When I use this function, each word is separated by a ,. But I want some noun phrases like ...
2
votes
2answers
114 views

Expand Graphics based on all elements

How might I force the following Graphics element to expand to contain the Inset text? ...
0
votes
1answer
64 views

Modifying a column with a button within the column

I want a column with textcells and a button to add an extra textcell: ...
3
votes
3answers
129 views

Generating a list of questions (simultaneous equations)

I am trying to create a list of simultaneous equations showing steps, where I only need to change a, b and the question number, and maybe a couple of minor things about q (where q is the factored ...
0
votes
2answers
56 views

How to divide a notebook into sections? [closed]

I've seen some very nicely formatted Mathematica notebooks with sections, explanatory text, etc., but I can't figure out how to do something similar. The documentation is not especially helpful here ...
1
vote
0answers
44 views

Type Vietnamese in Mathematica

I type Vietnamese using UTF-8 Encoding but Text Display got error. How to type Vietnamese, Chinese in Mathematica. Please help me.
3
votes
1answer
86 views

How to fill a whole rectangle with text?

I have a rectangle with specified dimensions and I'd like to fill it with text, so that the text uses all (well, as much as possible) of the available area. I tried to do it with ...
7
votes
3answers
170 views

Formatting an equation on a plot

I am trying to label a plot with an equation. The problem is that Mathematica formats things almost well but not exactly. The parenthesis are of the wrong size, and the powers are not high enough. ...
-1
votes
1answer
104 views

Adding a textfield to the function that I implemented

Adding a textfield to the function that I implemented to represent the tangent or derivative of a function, but I've added so mark errors. ...
1
vote
0answers
39 views

plot cropped in large amount when setting Text Style to some specific sizes and in some locations

I make a Graphics and then add Text[Style["b",size] to it. When changing the size, I noticed that the overall graphics gets ...
3
votes
1answer
123 views

Sorting an Array with words in different languages

Array consists of words of different languages. I need to sort elements in reverse alphabetical order and make a list of elements, which consist of english letters. Example of array which consist of ...
3
votes
2answers
92 views

Can I frame text in a plot to look like legend?

I have a DateListPlot, much the same as below, that I want to overlay text onto. I'd like the text to be wrapped in a frame much the same way as the legend box is, ...
4
votes
2answers
161 views

Character display color

I'm looking to cause the front end to display individual characters in a specific color, just in general, as a default sort of thing. For instance, the character "1" would always display as a red 1, ...
3
votes
1answer
120 views

DensityHistogram label/display values in Mathematica 8

I'm trying to make a DensityHistogram in Mathematica 8 that overlays the histogram values for each location. What I want is for the value of each square to be ...
8
votes
2answers
375 views

How to position text labels automatically to not overlap other graphics elements?

I was plotting reciprocal frame projection using Locators for a point to be expressed in terms of both the original basis (also specified with ...
2
votes
1answer
72 views

Shortcut to insert plaintext?

Oftentimes I would find it useful to insert plaintext, to not be evaluated as input, right next to my input code. Is there a shortcut key to insert such a plaintext input box? I have relied on ...
9
votes
2answers
164 views

Pasting monospaced text into Mathematica notebook destroys aligment

I drew the little ASCII-art electronics schema below in vim. When i try to paste it into a Mathematica notebook, with: A) A code cell B) A monospaced font (Courier New) Mathematica insists on ...
5
votes
1answer
83 views

Text formatting with different wrappers

Formatting text in Mathematica should be a punishment for serious crimes. I've face another frustrating feature, and I don't know how to get rid of it. ...
3
votes
0answers
64 views

There is a button in the “basic math assistant” which wraps highlighted text in chosen brackets. Is there no keyboard command for this?

This counts as something of a basic question, but one for which I cannot find an answer. I checked the documentation, I checked google, I searched it here, I read a bunch of different things, but ...
0
votes
1answer
42 views

How do I include both text and variables in Input[ ]?

I want to prompt a user to input an answer to a question. I want the question that pops up to have both text and numbers or strings. For example, if I ask the user to give a name to something in the ...
2
votes
3answers
174 views

Outputting a fraction on one line with an oblique division sign

How can I make Mathematica output a fraction as x/2 as opposed to the x on top with a horizontal bar and ...
1
vote
1answer
86 views

Input text field GUI [duplicate]

Is there a way to input multiple rows of text and save it as a variable? Like an InputField, but with multiple rows? I would like to make a simple text redactor, so that I could enter a text and then ...
1
vote
1answer
95 views

Text with specified FontSize looks smaller than expected

The simplest way to see what the post's title is trying to convey is to evaluate: ...
3
votes
1answer
172 views

how to delete specific data from text file and then update it

I have a large text file. I read data from text file one at a time and check whether data agree with my condition. If not I want to delete that data in text file and update it. For example say my ...
0
votes
1answer
37 views

Evaluate a list of Expressions from file

I have a list of expressions in a text file. I would like mathematica to evaluate and export the results at the end of the same file or in a new file. The expressions are in seperate lines in the text ...
6
votes
3answers
139 views

Strange behaviour when line-wrapping text in a Pane

I noticed some strange behaviour of Pane. In the result from the following code, the line wrapping is not consistent: why do the first and last line contain four ...
0
votes
0answers
61 views

WordData[] in other languages [duplicate]

Is there any way to use WordData[] in spanish words? I haven't seen any about that in http://reference.wolfram.com/mathematica/ref/WordData.html
2
votes
2answers
205 views
5
votes
1answer
215 views

What is the proper way to extract XMLElement values?

I have seen and tried many different versions of XML data parsing here on this forum, and even some in the documentation. Is there a tried and true "Best Practice" way to extract all the XMLElement ...
3
votes
5answers
298 views

How to write a function to remove comments from a .m source file preserving formatting such as line wrapping reasonably?

How to write a function to remove comments from a .m source file preserving formatting such as line wrapping reasonably? This means if I have ...
7
votes
2answers
210 views

Convert quoted printable aka PrintableASCII characters to UTF-8

I have several .eml email files to import. Some of them were saved as quoted-printable 7-bit encoded. I skipped through the Mathematica documentation and found ...
5
votes
2answers
754 views

How to export results of an analysis in table format into MS word file

I'm working on a simulation study using Mathematica 8. At the end of the analysis I'll have a matrix of data containing my results (assume for three variables like x,y & z). I used these codes for ...
-3
votes
1answer
118 views

Mathematica output in ASCII or larger text size for the output?

I am trying to read the output of this code that has crosses, circles and spaces. For some reason, the output is in very-very small alphabets so I would like to get it in ASCII and/or in larger ...
4
votes
2answers
438 views

rotating 3d text

Is it possible to create a 3d rotating text like this: animation here. Here is my try so far: ...
10
votes
5answers
586 views

Determine the Number of Lines in a Text File

I have looked and looked but I do not see a simple efficient way to get MMA to return the number of lines in a text file? I thought about reading the file until it returned the EOF marker, but that ...
0
votes
2answers
112 views

Iterating Reads From a Text File and Writing the Results of Operation

I have a very large text (TSV) file. I am able to now read single line, thanks to StackExchange. I am able to read a part of that line using the part operator. I want to iterate through the whole ...
2
votes
1answer
114 views

diff-able text-only notebooks?

I would like to save my Mathematica notebooks as plain-text documents, so that I can keep them under git version control. I thought that ...
3
votes
3answers
2k views

Label points in plot with a text

I'm a newbie at Mathematica and I couldn't find how to label the maximum and the zero of a simple function in Plot with their names: ...
14
votes
2answers
267 views

Haiku Extractor

Inspired by the cool Tumblr Haiku Times that searches for accidental haiku in New York Times articles, I tried my hand at implementing such a search in Mathematica for my own text samples. I'm still ...
2
votes
0answers
77 views

Exporting large numbers to a text file [duplicate]

I need to export large numbers to an ASCII text file, but as simple digits without powers of ten, e.g. I need to write 123456.789 to the file and not 1.23456789E10^5. It seems like such a simple ...
6
votes
1answer
114 views

How do you force line spacing to be uniform when a line contains characters with vector or overdot?

A persistent problem I've run into is that certain character decorations within the text of a paragraph will often add extra line spacing even if there is already plenty of space between lines. This ...
3
votes
2answers
486 views

3D scatter plot from a txt file

I have a txt file with space-delimited x, y, z coordinates of several points. The points are organized into groups of unequal size; the groups are delimited by skipping a line, like this: ...
6
votes
4answers
264 views

Where can I take a pool of words from?

Dear Community members, I am thinking about an interactive machine to teach a school child to write difficult words correctly. As a first step I need a collection of words. I will select a pool of ...
9
votes
1answer
350 views

Poor anti-aliasing in Rotated text with ClearType on

There is a problem on my system that occurs when text is rotated 90 degrees as it is in frame labels. This only happens when ClearType is turned on, and only around 90 degrees of rotation. I am ...