Questions tagged [text]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
20 views

An efficient way to extract Dependency Strings from a sentence

Mathematica has the built-in function TextStructure, with the option "DependencyStrings" that provides the dependency strings of a sentence. Unfortunately, this function is incredibly slow. ...
1
vote
0answers
15 views

How to build a text file running notebook in the cloud

I have a Mathematica notebook that works perfectly, generating a Scala tuning file and downloading it as a Cloud Object to my local computer. I converted the code to run in the Wolfram Cloud, and all ...
2
votes
1answer
24 views

Stylesheet control of system panel font colors?

I'm trying to make a custom dark mode stylesheet, and I started with Kuba's great DarkPackage. The issue is how to deal with text in panels (you can barely see the white-on-white text, unless you ...
4
votes
1answer
67 views

MaTeX shadow option?

When I create my graphics, I find that the tex objects created with MaTeX either clash with other objects (such as a coordinate grid) or, if I add a background, erase too much. Is there another option ...
1
vote
1answer
49 views

Typesetting LaTeX in a text cell

I recently started trying to use stylesheets and different cell types to organize and explain my logic. Often I try to type equations into my text cells to explain what I'm doing, but this can be ...
0
votes
0answers
35 views

convert rational number to a text-string fraction — i.e Numerator “/” Denominator — for file export

I experience difficulties attempting to convert a list of rationals to textstring fractions with numerator divided by (i.e. '/') denominator, and outputting each on a subsequent line to a file (i.e. [...
4
votes
1answer
50 views

Assigning probabilities to an Autocomplete function

I have created an autocomplete function based on WordList. auto = Autocomplete[WordList["KnownWords"]] And if I use this on the letters "ga", it will provide me ...
4
votes
0answers
49 views

Mathematica Global Menu Size

How do you change the text size for the GLOBAL MENUS in MATHEMATICA 12? I am NOT talking about anything INSIDE the notebook (this has been asked and answered many times). I am talking about the "...
4
votes
1answer
90 views

How to find similar words from the provided list?

Let's say I have created a list of words that are acceptable in a certain context. list = {...}; Now given a new or some existing word from the list I want to ...
1
vote
1answer
40 views

How to change list type from CountryData to regular text? [closed]

When you access a list of countries from CountryData the outputs are boxed and is not normal text. How do I convert the type of items inside the list so I can modify the style? For example I have: <...
2
votes
2answers
105 views

Exporting the data points from two plotted curves

I am using Wolfram Mathematica 11. Given these quantities: ...
0
votes
0answers
64 views

Convert Mathematica output to Python code

I have this Mathematica (output) vector that I'd like to convert to Python: ...
3
votes
0answers
88 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
68 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
1answer
193 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
34 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 ...
3
votes
2answers
47 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
50 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
56 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
219 views

Implementing a Better Grep Command

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

How to improve the output of text labels around a circle points?

...
0
votes
1answer
83 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
71 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
55 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
42 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
342 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
71 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 ...
0
votes
1answer
82 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
32 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
51 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
46 views

Text with dynamic values

...
1
vote
1answer
52 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
69 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
73 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
155 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
79 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
65 views

Mix text and calculated values in table header

I have a simple table: ...
2
votes
1answer
44 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 ...
5
votes
2answers
121 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
99 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
80 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, ...
2
votes
3answers
309 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 ...
3
votes
2answers
132 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
109 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
47 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
131 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
56 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
526 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 ...

1 2 3 4 5 6