The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [text]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
18 views

Text flow into user-defined outline

I'd like to flow text into a region defined by a curve, such as: ...
0
votes
1answer
60 views

How to extract specified objects from a pdf?

Is it possible to extract some information from a pdf file? I am interested in extracting the words before the squared brackets and the following word (in the image, for example, I would like to ...
6
votes
2answers
138 views

Compare two texts and find differences and similarities

I would like to compare two texts and try to find their degree of similarity and highlight the differences. I would like to do this, not only in terms of words, but also sentences/context, if it could ...
1
vote
0answers
16 views

How can I get information from the ads within a website? [closed]

Is there any function that identifies ads on a website? I would like to analyze them but I do not know how by using Mathematica.
3
votes
0answers
30 views

Trying to use TextAlignment->Center in Text in Graphics3D pushes text far off of background

I am trying to annotate a plot with text. The text is intentionally line wrapped, and I want it to be centered, so I am trying to use TextAlignment. However, when I do this, the text gets pushed way ...
2
votes
2answers
36 views

Place two-dimensional Graphics object into three-dimensional Graphics3D object

I have a labelled two-dimensional Polygon that I render with Graphics. ...
1
vote
1answer
44 views

How to run a function for each item in a list?

I would like to ask you how I could implement a function that for each string in a list execute something. This should be the case: ...
2
votes
2answers
52 views

How do you provide subscripts and superscripts in your comments?

I want to write a comment (text) describing what's happening in my function. I want the text to appear like this: Note that the ElectronNumberDensity is in units of $cm^{-3}$. Thompson cross section ...
5
votes
2answers
174 views

Implementing a Better Grep Command

In Working With String Patterns, Wolfram documentation yields a simple Grep function: ...
3
votes
1answer
65 views
0
votes
1answer
69 views

How to select elements from a dataset?

I am having difficulties to extract some elements from a dataset. I imported the .csv file in Mathematica using the following line of code: ...
1
vote
1answer
58 views

How to set the position of the axis label in program?

I have studied the relational contents through the webpage Placing x-axes label below rather than at end of axes, but not found: (1)How to put annotation on the left of y axis and display the graphic ...
0
votes
0answers
50 views

How to check if two list of string are similar

I would like to ask you how to check if two or more list of strings are similar to each other. For example, ...
0
votes
0answers
33 views

How to split the text into paragraphs and associate each paragraph to a caption?

I would like to understand what I am doing wrong in this function: ...
2
votes
2answers
132 views

How to split a text into paragraphs?

I would like to ask you how to split the following texts into 4 paragraphs. These are two documents, one starts with "It's official...", and the other one with ",CNN...". ...
0
votes
4answers
66 views

How to leavy only numerical data in the file?

Consider a file. Apart from an information which is non-relevant for me, it contains blocks <event></event> with the numerical data inside. Is there a ...
3
votes
2answers
94 views

How do I import data formatted in C or Fortran into Wolfram Language?

I want to import some data that has been formatted using C language. I am not sure if there is a way to read in data by specifying column widths in WL. The data has been formatted using ...
0
votes
1answer
80 views

How many symmetric words are in a string? [closed]

Determine how many symmetric words are in a given string. https://reference.wolfram.com/language/tutorial/WorkingWithStringPatterns.html
0
votes
0answers
28 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
44 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
42 views

Text with dynamic values

...
1
vote
1answer
51 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
62 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
60 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
132 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
73 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
61 views

Mix text and calculated values in table header

I have a simple table: ...
2
votes
1answer
43 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
99 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
85 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
70 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
33 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
276 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
107 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
103 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
46 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
129 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
51 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
433 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 ...
2
votes
1answer
54 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
41 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
128 views

How to run GrammarApply offline?

It is a question regarding formal grammar. I have a grammar rule addition as below:- ...
1
vote
1answer
89 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
69 views

Direction of text when labelling graphs

On a related question to this, I am now experimenting the labelling with the circle points, ...
5
votes
2answers
124 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
139 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
348 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
320 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 ...