Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [text]

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

0
votes
0answers
26 views

How to graph a text as a function of some arbitrary parameters?

I'm trying to graph a text in a couple of plots I have. I want to be able to edit the text depending on the values I choose (rho0, zp, zm, temp, ion, and perm) and show them at some point in my plot (...
0
votes
0answers
31 views

TextContent does not work on my computer

TextContents does not work, returns `TextContents::wlnetcorr2: A required WLNet file is corrupted and could not be loaded. `TextContents::nlpnetmodel: An internal error occurred while loading ...
0
votes
0answers
34 views
1
vote
1answer
48 views

Get a snippet from a sentence that contains a number of interest

I have the following problem. I want to get a snippet from a text that contains a number, which I am interested in: Sentence: ...
1
vote
1answer
52 views

Simple approach to importing data and reading headers

Admittedly, this will be a very naive question, but I'm really curious to learn how one can achieve the following in a simple manner: Suppose we have a text file formatted like so: ...
1
vote
0answers
51 views

Words weighting with TF-IDF (updated with cleaned code)

I have a raw dataset under this form : {{label1,sentence1},{label2,sentence2}.....} Sample here: sample available here also I am trying to apply TF-IDF: putting ...
4
votes
1answer
107 views

Named entity recognition

How can one process natural language (English) to extract named entities (aka NER)? Or at least, entities which can be mapped to a Mathematica Entity. Note that trying to map entities via simple ...
2
votes
1answer
61 views

The Text in GeoMarker

In continuation the topics 1 and 2: I had the map "EKB" and I needed to mark some objects. Just for example: AES= TECgas= <...
2
votes
2answers
57 views
2
votes
1answer
41 views

Typing Control-6 makes text cell disappear

This morning, I opened a document I worked on last week, and all the lines of text that had Control-9 functions in them where the function involved a power written by typing Control-6 were completely ...
4
votes
2answers
66 views

How to fully display text in the text box of Manipulate control when expanded?

When the control of Manipulate got expanded there's a display text box but it does not fully show the control value as shown in figure. Is there any way that the size of this box can be adjusted to ...
2
votes
3answers
71 views

Text position inside jpeg file

I tried the following line in order to write a text in my image. p1bis = Labeled[p1, Text[Style["(8)", FontSize -> 52]], {{Top, Left}}] I get the following ...
2
votes
2answers
56 views

Text beside image

I have a lot of text in my Notebook (Format>Style>Text), and I would like to have the full width text, then insert an image on the left, and have the text continue down the right side of the image, ...
0
votes
0answers
27 views

Syntax Error, Text Style and escaping characters

I have a weird error (I guess it could be called a bug), where a file containing the text line (as in in a cell you create with Alt-7) gives a syntax error when called from the terminal using ...
2
votes
3answers
245 views

How correctly align text as graphics

When I try this: Framed@Graphics[{Text[ Style["Text", FontSize -> 50, Bold, Black, Background -> Green, FontFamily -> "Calibri"]]}] I get a ...
7
votes
1answer
152 views

Converting from (telephone) number to short English phrase

One way to memorize telephone numbers is to convert the number into a simple phrase in natural language (e.g., English) so that when dialing on a keypad one merely types out that word or phrase. Here ...
3
votes
2answers
80 views

Having Mathematica replace DOS line breaks with UNIX in files

Say I have a file named "Silly.tex" which has \r\n line breaks. Is there a way to get Mathematica to convert it to only have \n line breaks? You can find such a file with DOS line breaks at: https://...
1
vote
1answer
94 views

How to import complex .txt file to matrix in MMA for user defined keywords / database?

I am thinking about how can we import complex .txt file (Ansys/Abaqus) to MMA for the selected database? For example: txt file (input file): ...
2
votes
1answer
44 views

Manipulate does not work with random and text display

I would like to do a small demonstration of Monte Carlo integration. However, When I generated the plot code, it does not work properly. ...
4
votes
2answers
127 views

How do I treat the results of Fit as text?

I would like to take the results of Fit (or any FittedModel) and treat them as text, including making substitutions for the ...
15
votes
4answers
2k views

What stopwords list is the Wolfram language using?

The documentation of DeleteStopwords only says that it "uses a standard, built-in list of stopwords". So what is it exactly? Update Now that it is said "standard"...
0
votes
1answer
48 views

Joining strings in FrameLabel [duplicate]

I want the $ x $-axis of this plot to be $ \tau/\alpha_e $ without the "+", but I'm unable to do this without Mathematica putting the $ \alpha_e $ to the front of the string. ...
7
votes
3answers
340 views

Programmatically create a keyboard shortcut to “Align Center” a Text Cell without losing cursor position

I'm attempting to create a keyboard shortcut to center the contents of a text cell exactly as clicking "Align Center" accomplishes in the Format Menu. As far as I can tell, there is no frontendtoken ...
0
votes
0answers
27 views

How to do surgery on FeatureExtraction on text?

I have a text data, which is a list of different sentences. I used below for example:- ...
2
votes
1answer
48 views

Import and rearrange txt file

I have a txt file like this: A B C 400 2 3 2 1 8 Now I would like to import the txt file and write it all on one line instead of in columns, so like that: <...
1
vote
1answer
40 views

Exporting Table format and strings not enclosed in quotes

The help file for format/Table says very clearly "By default, Export delimits text fields containing the field separator with double-quote characters." A simple ...
8
votes
0answers
109 views

How to run GrammarApply offline?

It is a question regarding formal grammar. I have a grammar rule addition as below:- ...
1
vote
1answer
85 views

TeXForm as PlotLabels (Configuring GhostScript?)

Update ConfigureMaTeX[ "pdfLaTeX" -> "C:\\Program Files\\MiKTeX 2.9\\miktex\\bin\\x64", "Ghostscript" -> "C:\\Program Files\\gs\\gs9.23\\bin" ] ...
3
votes
1answer
68 views

Direction of text when labelling graphs

On a related question to this, I am now experimenting the labelling with the circle points, ...
0
votes
0answers
18 views

How to locate the data behind WordFrequencyData?

I would like to do some historical textual analysis. For example, the following codes with WordFrequencyData and TimeSeries ...
5
votes
2answers
113 views

Add several text files into one text file using Mathematica

I have twenty data files each contains 1000 lines ("a1.txt, a2.txt....a20.txt"). Now I want to add all these files to a single file and keep the line sequence as followed by the input files (first ...
3
votes
1answer
123 views

Splitting a text file into smaller text files by line numbers using Mathematica

Is it possible to split a large text file into smaller files by line numbers in Mathematica?
4
votes
1answer
225 views

Can not edit font on drawing tool

I am simply trying to add some text to a plot via the drawing tool, but it seems the text style options are fixed at some default setting and will not change. You can see in the following picture that ...
6
votes
3answers
226 views

Working with text in 3D graphics

I'd like to add text to the surfaces of a cuboid. I have tried Text and Epilog, and neither of them worked. Consider the ...
2
votes
1answer
60 views

Can MaTeX objects scale the same way as Text objects?

When one uses Text[Style["Hi", FontSize -> Scaled[.1]]] the text will resize proportional with Imagesize? Is there a way ...
0
votes
2answers
43 views

Looking for specific data in .txt file

I've the following code: Import["test.txt"] And it gives me: 1,10 2,20 3,30 4,40 5,50 6,60 7,70 8,80 9,90 10,100 11,110 12,120 13,130 14,140 15,...
4
votes
1answer
66 views

Searching for substrings in large text document?

I have a large text file that I need to search for certain substrings and I would like to use the speed-up that TextSearch gives. Unfortunately, with ...
6
votes
6answers
344 views

Simple method to sort versions

The goal is to sort long lists of versions. For example: Input ...
0
votes
1answer
30 views

Searching in a .txt file for a specific time

I've the following code: Import["hoi1.txt"] And it gives me: "(time,voltage,current,power) (1,10,5,10*5) (2,20,6,20*6) (3,30,7,30*7) (4,40,8,40*8) (...
3
votes
1answer
51 views

Dynamic Text depending on output of a manipulate

So I am looking for a way to calculate and show dynamically as text the x-Axis-value of the Intercept of those two curves. ...
0
votes
1answer
46 views

how to write text (name) for the plot (figure)

I have a density plot and I need to put a name (Fig 1) below the figure. ...
2
votes
2answers
96 views

Searching words with the five vowels

after looking for a long time manually words in Spanish that have the five vowels in any order, for example Republicano, murcielago, superiora, etc; I'm bored and without success. I thought that ...
3
votes
1answer
83 views

Scrollbar in DialogInput

Writing: ...
4
votes
0answers
81 views

How to highlight text with callouts?

This screenshot is from a presentation by Brian Frezza at Wolfram Data Summit 2014. In what clearly is a Mathematica notebook. How is the text highlighted with the callouts? Some sample text (...
4
votes
0answers
279 views

Using Machine Learning techniques for text-analysis

I am analysing a bunch of tweets and I want to understand which political party the authors support. Let say, for example that I have five parties labelled by a number: ...
1
vote
1answer
57 views

How can I create a word consisting of sequence of letters which produce the word?

I found today at the web site of the Wolfram Programming Lab the following Code which can create a Pi symbol filled with the digits of Pi: ...
3
votes
1answer
66 views

Long text is cropped in Graphics

I want to convert a text slogan into graphic, and then add to an image. However, the long text is cropped. How to fix? Here is the code: ...
8
votes
3answers
221 views

How can I standardize the coordinate origin for exported/imported outlines?

There is a widely known trick of converting letters to curves: ...
3
votes
0answers
63 views

Extracting names (surname & family name) from unstructured text files

This question is about finding names of people in a text without knowing these people. There are some rules we can use to detecting names in a text A name consist always of two or more words (...
1
vote
1answer
140 views

Changing Text with Previous Quotation Marks

I defined some variables as follows: altura=15;comprimento=45;largura=92; I have a TXT file that comes formatted from another application: ...